Start Multiple tomcat servers and tomcat servers at the same time during local development
1. Do not set CATALINA_HOME in environment variables;
2. Modify the server. xml file in the conf subdirectory of the installation directory respectively:
A. Modify the http access port (port 8080 by default) and set port 8080 to a port number that is not used by tomcat. The port number is used to access the web.
B. Modify the Shutdown port (default port 8005) and 8005 to the unused port number, for example, 8055.
C. Modify port 8009 to a port number that is not in use, for example, 8009 (note: the port numbers in the two files must be different)
3. Start two tomcat servers in sequence.
4. If you are using the tomacat server integrated with MyEclipse, You need to select the tomcat Server to be used in the server after changing the Server. xml in the corresponding location,
Right-click -- Configure Server Connector -- Port Number and change it to the corresponding Port in server. (The default value is 8080. If this parameter is not modified, the port value in server. xml is automatically modified to 8080 after startup.
Summary: it is actually to separate the port numbers used in tomcat (note that there are three port numbers to be modified)