Linux启动tomcat显示端口被占用
SpringBoot启动报错:org.apache.catalina.LifecycleException: Protocol handler start failed查看报错信息显示:Description:The Tomcat connector configured to listen on port 8080 failed to start. The port may alre...
·
SpringBoot启动报错:
org.apache.catalina.LifecycleException: Protocol handler start failed
查看报错信息显示:
Description:
The Tomcat connector configured to listen on port 8080 failed to start. The port may already be in use or the connector may be misconfigured.
Action:
Verify the connector's configuration, identify and stop any process that's listening on port 8080, or configure this application to listen on another port.
显示端口8080被占用
使用 netstat -anp | grep 8080
查看端口并没有发现占用
此时应该切换到root用户下查看,因为在当前用户下权限不足无法查看别的用户起的进程
通过命令ps -ef | grep {目标进程号}
查看占用的进程
发现是root用户起的一个进程占用了端口
只需kill -9 {目标进程号}
便可解决端口被占用问题
更多推荐
已为社区贡献1条内容
所有评论(0)