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
The server cannot be started because one or more of the ports are invalid.这个问题的解决方法
2.找到如图高亮的试图即可The server cannot be started because one or more of the ports are invalid.这个问题的解决方法
3.双击这个服务器会出现下面这个画面
The server cannot be started because one or more of the ports are invalid.这个问题的解决方法
The server cannot be started because one or more of the ports are invalid.这个问题的解决方法
请大家一定要按照这个将端口修改完整。
这样就可以解决这个问题了!!!
我查了很多资料基本上都是第一个和第三个端口有问题就会出现这个问题。要是第二个的这个端口出现问题的话,请先查看端口是否有重复,输入命令
netstat -ano|findstr “8080”
根据pid(进程id)查询对应的应用程序
tasklist|findstr “xxxx”
如果有发现有程序占用端口的话
根据名称 结束该程序
taskkill /f /t /im mou.exe