1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66
| $ md5sum xxx.class
$ java -cp ./lib/*:./classes/ com.rookie.Application
$ netstat -ant| grep 3306
Proto Recv-Q Send-Q Local Address Foreign Address State
$ cat /etc/hosts
$ telnet PATH [端口]
$ find . -iname "hello.jar"
$ cp hello.jar /tmp
$ ss -tnlp| grep [端口/进程] $ netstat -tnlp| grep [端口/进程]
$ mkdir foldername
$ touch filename
$ ls -ltr
$ nohup [openjdk]/bin/java -jar xxx.jar &
$ scp -r /home/local_directory/* username@server_ip:/home/remote_directory/
$ chmod +x startup.sh
$ chmod u=rwx,g=rx,o=r [文件名]
$ chown user:user install.log
$ cat ~/.bash_profile
$ cat /etc/profile
$ echo "" > nohup.out
$ nohup java -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5000 -jar xxx.jar &
$ nohup java -Dserver.port=[端口] -jar eureka.jar & $ nohup java -Dserver.port=[端口] -Dds.ip=[双机互备另一节点IP地址] -jar eureka.jar &
|