eclipse启动servlet,报错端口冲突,解决办法

情况:重启电脑后,在eclipse中启动servlet项目,报如下信息:The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.
在这里插入图片描述
双击servers修改端口和修改tomcat文件配置端口,重启、关闭、开启(通过bat文件运行)tomcat都不行。删除tomcat的windows服务也不行。
在cmd中输入netstat -aon|findstr “8080” 也没有端口占用着。
根据https://stackoverflow.com/questions/5064733/several-ports-8005-8080-8009-required-by-tomcat-server-at-localhost-are-alre?page=1&tab=votes#tab-top的最高票答案,找到解决办法,不知道原因。
解决方法如下:卸载tomcat.exe 下载zip版本。启动成功。(卸载失败,看这篇文章https://www.cnblogs.com/koongcen/p/9188402.html)

发布了6 篇原创文章 · 获赞 2 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/Mr_ZHOUZHOU/article/details/100915794