springboot project to deploy a cloud server

java -jar demo-0.0.1-SNAPSHOT.jar
Permanent process
nohup java -jar demo-0.0.1-SNAPSHOT.jar &

  nohup does not mean hanging service, permanent meaning, unless the cloud server is restarted, it is nothing I can do; last & representation after executing the command to generate a log file nohup.out

  So do not worry about the close xshell, as long as the cloud server does not close, always accessible.

View the process

ps aux | grep getCimiss-surf.jar

You will see this jar of process information

data 5796 0.0 0.0 112656 996 pts/1 S+ 09:11 0:00 grep --color=auto getCimiss-surf.jar data 30768 6.3 0.4 35468508 576800 ? Sl 09:09 0:08 java -jar getCimiss-surf.jar

To this end the jar in which 30,768 pid, kill command

kill -9 30768

 

 

 

Reference https://www.cnblogs.com/qdhxhz/p/8886993.html

Guess you like

Origin www.cnblogs.com/shihx/p/12046901.html
Recommended