Commands that may be used in server deployment projects

  1. Fuzzy search for the information of the running process (username, ID, time, commit, path...)
ps -aux|grep fruit-0.0.1-SNAPSHOT.jar

Insert picture description here

  1. Kill process
kill -9 进程号
  1. Background running process
nohup java -jar /home/fruit-0.0.1-SNAPSHOT.jar >temp.txt &

Insert picture description here

For details, see "nohup and & background running, process viewing and termination"

Guess you like

Origin blog.csdn.net/weixin_43438052/article/details/114601820