Solve the problem of invalid port in MyEclipse2017 configuration tomcat
- First, click Window->Servers->Runtime Environments
- Click add to add your tomcat
- After finishing, click to start tomcat and it will immediately display an error, saying that the port is invalid
- I have checked many methods, saying that it is to change the port number of tomcat, but the new version of MyEclipse cannot enter the page mentioned on the Internet at all, so I had to change it from the configuration file of tomcat
- Enter the server.xml file of tomcat
- You will find that Server port defaults to -1, and it is this port that caused the connection to be invalid
- Modify it to other values, such as 8005, save it, and you can start tomcat normally
Regarding the meaning of the three ports of tomcat, you
can see the big guy https://blog.csdn.net/zhuzhezhuzhe1