场景
启动Tomcat时提示:
Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
在此之前还提示:
Socket bind failed:[730048] ????????? ...........
如图:
解决
1.首先打开任务管理器,查看javaw有没有在运行,有就关掉。
2.如果没有就查看8080端口有没有被占用,如果被占用,则将被占用的程序关掉。
3.如果没被占用,则可以修改Tomcat的端口。
找到Tomcat路径下的conf下的server.xml
然后用EditPlus等打开,将原来的8080,修改为其他的比如8888,重启服务器。