ubuntu后台运行jar包,关闭远程命令终端不退出
cd /home/myfile/pic_system
nohup java -jar zqy_system_2023022301.jar >log.txt 2>&1 &
ps -ef |grep zqy_system_2023022301.jar
root 3414 3253 20 19:25 pts/0 00:00:18 java -jar zqy_system_2023022301.jar root 3468 3271 0 19:27 pts/1 00:00:00 grep --color=auto zqy_system_2023022301.jar
kill -9 3414
kill -9 3253
######################
标签:00,2023022301,zqy,jar,system,ubuntu,后台 From: https://www.cnblogs.com/herd/p/17189329.html