1.首先我手动启动了本地系统的tomcat服务,然后在myeclipse下部署项目时再启动tomcat时报如下错误:
Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
java.lang.Exception: Socket bind failed
2.确定是端口被占用后,在windows命令窗口下执行下面命令查询端口被占用情况:
确定端口被进程号为8632的进程占用,继续执行下面命令查看占用的应用:
3.关闭本地tomcat服务,再部署项目到tomcat时便不会再出错。