重装Myeclipse2017版本后,Tomcat9.0启动提示端口占用

问题

重装了Myeslipse 2017后,配置Tomcat9.0后。部署了项目在服务器上,但是Tomcat启动不了。

提示错误信息为:

The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.


解决

方法一:

我以为是端口占用:杀死进程:

netstat -ano|findstr  8080

 taskkill -f -pid 进程号

结果:进程取消后,仍然不能启动。还报原来的错。


方法二:

修改Tomcat9.0的sever.xml配置文件。

以前使用myeclipse10的时候没有修改配置文件都可以用,所以我不来想去改的。但是没有办法了所以想去试试。

重装Myeclipse2017版本后,Tomcat9.0启动提示端口占用

重装Myeclipse2017版本后,Tomcat9.0启动提示端口占用

保存后重新启动服务器。成功!


问题解决!