netstat -tunlp | grep ×× 查询出端口为××在运行应用的线程ip kill -9 ×× 关闭线程ip 为 ××的应用 rm -f ××.jar 移除×× .jar 文件 java -jar ××.jar & 启动××.jar 项目 转载于:https://www.cnblogs.com/cyril227/p/10090375.html