在linux服务器上启动jar包时报错,如下:
Description:
Web server failed to start. Port 8080 was already in use.
Action:
Identify and stop the process that’s listening on port 8080 or configure this application to listen on another port.
说明Web服务器启动失败,端口8080已在使用中,检查一下上一个启动的任务是否停掉
解决步骤:
1.进到bin目录下
cd /usr/local/tomcat/bin
2.查看tomcat是否关闭
ps -ef | grep java
3.使用tomcat关闭命令
./shutdown.sh (慎用)
如果想直接干掉tomcat可以使用kill命令直接杀死进程
kill -9 7010