Linux running Java jar package and the destruction process

According to the port to see this process pid:

netstat -lnp|grep 8080  #8080请换为你的apache需要的端口

To view the details of the process:

ps 1777    #1777就是上一步得到的pid

Kill the process:

例如: kill -9 [PID]  #-9 表示强迫进程立即停止

Jar package running in the background:

nohup java -jar ** &

Guess you like

Origin blog.csdn.net/affluent6/article/details/91543815