问题描述:

重新安装Tomcat后报:The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.错误,如下图所示:
重新安装启动Tomcat 8.5后报:The server cannot be started because one or more of the ports are invalid....错误

解决方法:

错误可能是在安装Tomcat的时候server shutdown port没有设置成8005,而是-1。
1、打开Tomcat安装根目录的conf文件夹中的sever.xml,如下图,将port=-1,改成8005,点击保存。
重新安装启动Tomcat 8.5后报:The server cannot be started because one or more of the ports are invalid....错误
重新安装启动Tomcat 8.5后报:The server cannot be started because one or more of the ports are invalid....错误
2、重新启动后,若仍然报错,说明端口被占用,改变端口,这里将8080改成8081,点击保存。
重新安装启动Tomcat 8.5后报:The server cannot be started because one or more of the ports are invalid....错误
3、重新启动Tomcat,问题解决。
重新安装启动Tomcat 8.5后报:The server cannot be started because one or more of the ports are invalid....错误

相关文章: