“The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.”
解决方法,在tomcat目录下的conf中有一个server.xml,大概在22行左右
server shutdown port为-1,将其改为没有设置成8005
8080未被占用但却报端口问题
最新推荐文章于 2025-07-24 11:09:00 发布
本文解决了一个常见的Tomcat启动问题,当遇到'Theservercannotbestartedbecauseoneormoreoftheportsareinvalid.'错误时,只需在server.xml文件中将servershutdownport从-1更改为8005即可。
4885

被折叠的 条评论
为什么被折叠?



