本文解决在eclipse中使用Tomcat运行Jsp文件时,出现“the server cannot be started because one or more of the ports are invalid. open the server editor and correct the invalid ports.”报错的问题。

解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错(这是从其他地方找的报错截图,大家不要介意哈)

报错译文:服务器无法启动,因为一个或多个端口无效。打开服务器编辑器并纠正无效端口。

出现这个问题原因是我们刚刚安装好Tomcat时并没有在浏览器中配置Tomcat的端口。

我们打开eclipse。
点击windows->show views->Others
解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错
双击Servers
解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错
双击
解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错
将端口号修改为8005(端口号可自行设置,但是要避免和其他服务器冲突)
解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错点击保存
然后返回运行我们的程序就可以了。

相关文章: