The server cannot be started because one or more of the ports are invalid.这个问题的解决方法

@servlet问题

The server cannot be started because one or more of the ports are invalid. Open the server editor and correct the invalid ports.
大家可能会遇到这种情况。
下面是解决方法:
1.(这个步骤是为了打开servers视图,如果有的话就可以略过了)首先点击window->show view ->other
在这里插入图片描述
2.找到如图高亮的试图即可在这里插入图片描述
3.双击这个服务器会出现下面这个画面
在这里插入图片描述
在这里插入图片描述
请大家一定要按照这个将端口修改完整。
这样就可以解决这个问题了!!!
我查了很多资料基本上都是第一个和第三个端口有问题就会出现这个问题。要是第二个的这个端口出现问题的话,请先查看端口是否有重复,输入命令
netstat -ano|findstr “8080”
根据pid(进程id)查询对应的应用程序
tasklist|findstr “xxxx”
如果有发现有程序占用端口的话
根据名称 结束该程序
taskkill /f /t /im mou.exe

发布了16 篇原创文章 · 获赞 0 · 访问量 340

猜你喜欢

转载自blog.csdn.net/weixin_44242119/article/details/104084723
今日推荐