Original site: http://blog.csdn.net/lnara/article/details/7687411
I don't know if my friends have ever run into multiple Tomcat launches on a single machine (Don't tell me to start one, there are multiple items on it, I know).
There will be a commodity conflict at startup and the Tomcat port needs to be modified: I'm using the zip version of the direct decompression
A total of 3:
Modify
%tomcat_home%\conf
Under the Server.xml
First: Modify the HTTP access port (default is port 8080)
<port= "8080" protocol= "http/1.1" connectiontimeout = "20000" redirectport= "8443"/>
(around 69 rows) changes 8080 to the port number that the first Tomcat is not using. The port number you set here is the port number that you will use to access the web later.
Second: Modify the shutdown port (default to 8005 port)
<port= "8005" shutdown= "shutdown">
(about 22 rows) change 8005 to no port number in use
Third: Modify the port of 8009
<port= "8009" protocol= "ajp/1.3" redirectport= " 8443 "/>
(about 90 rows) change the 8009 to a port number that is not in use, such as 8099
[Reprint] Launches multiple Tomcat ports to be modified