解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错

本文解决在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”端口报错_第1张图片

(这是从其他地方找的报错截图,大家不要介意哈)

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

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

我们打开eclipse。
点击windows->show views->Others

解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错_第2张图片

双击Servers

解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错_第3张图片

双击对应的Servers项目

解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错_第4张图片

将端口号修改为8005(端口号可自行设置,但是要避免和其他服务器冲突)

解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错_第5张图片

关于计算器的端口使用情况可以参考:计算机端口大全

如果端口被占用了,可以参考:查看win10电脑端口被占用的情况

转自:解决eclipse中Tomcat“the server cannot be started because one or more of the ports are invalid”端口报错

你可能感兴趣的:(Java,Eclipse,Tomcat,端口冲突)