Solve the problem of invalid port in MyEclipse2017 configuration tomcat

Solve the problem of invalid port in MyEclipse2017 configuration tomcat

  • First, click Window->Servers->Runtime Environments
    Insert picture description here
  • Click add to add your tomcat
    Insert picture description here
  • After finishing, click to start tomcat and it will immediately display an error, saying that the port is invalid
    Insert picture description here
    Insert picture description here
  • 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
    Insert picture description here
  • You will find that Server port defaults to -1, and it is this port that caused the connection to be invalid
    Insert picture description here
  • 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

Guess you like

Origin blog.csdn.net/Yungang_Young/article/details/109084662