1、根据端口号查看进程 netstat -nlp | grep 端口号。 2、杀死进程 kill -9 pid(进程号) 3、启动jar nohup java -jar 包名.jar & 老记不住,供自己参考。