How to start multiple tomcat on a single computer

Copyright: quack https://blog.csdn.net/qq_41570658/article/details/91447441
  • The following steps can be simultaneously started two tomcat:
  • 1, with particular attention: Do not set the CATALINA_HOME
  • 2, respectively, modify the server.xml file in the conf subdirectory under the installation directory:
  • a. Modify http access port (port 8080 by default, when the installation would be changed to another port number, such as 5 * changed 8081,6. * into 8086), 8080 will be amended to tomcat port number is not in use . Port number set here is the port number that is later used to access the web.
  • b. Modify Shutdown wherein the port is a tomcat (in server.xml, default port 8005), to modify the port number 8005 is not in use, such as 8055.
  • c. Modify wherein a tomcat port 8009, and 8009 will not modify the port numbers used, (also modify server.xml) 8099 e.g.
  • (Note: two port numbers "the server.xml profile" corresponding must be different.)
  • 3, in order to start two tomcat.
  • Can all start in eclipse (such as tomcat5.0 a plug-in version, there is a cat in the eclipse, while the other 6.0 version is configured by myeclipse in windows-perfrences-), can also be started by corresponding startup.bat, also elipse can use a start, the other by starting startup.bat.

Guess you like

Origin blog.csdn.net/qq_41570658/article/details/91447441