Solve the problem of Tomcat port occupation

1. If tomcat is run at the beginning, and then tomcat is run later, an exception of port occupation will be reported. In this case, you only need to shut down the first tomcat.

2. If the port number of other software conflicts with tomcat, we can modify the port number of tomcat, or close another software with the same port.

①Modify tomcat port number:

Find sever.xml in the tomcat installation directory and modify the port value.
Insert picture description here
②Close other software on the same port

netstat -ano|findstr port number

Guess you like

Origin blog.csdn.net/qq_41504815/article/details/114896820