列出运行中的进程号 ps aux|grep xxx.jar 杀死进程 kill -9 进程号 使用nohup命令启动jar包 nohup java -jar xxx.jar > nohup.out 2>&1 &