Modify the Tomcat port number method and the tomcat port number
Original Works are from the blog of "Deep Blue blog". You are welcome to reprint them. Please note the following source when reprinting them. Otherwise, you will be held legally liable for copyright.
Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/42739693
(1) Search for the server. xml file in the conf path. The path is as follows:
I: \ tomcat6 \ apache-tomcat-6.0.32 \ conf \ server. xml
(2) Open the server. xml file and modify the following information:
Before modification:
After modification:
(3) start tomcat
Start tomcat and execute the startup. bat file,
Path example: I: \ tomcat6 \ apache-tomcat-6.0.32 \ bin \ startup. bat
The display reference is as follows:
(4) Verify the modification of the port number
Open the browser and enter http: \ localhost: 8686 (localhost is the IP address for deploying tomcat, which is deployed on the local machine. Therefore, use localhost and enter 8686 as the port number)
So far, the tomcat port number has been modified.
Original Works are from the blog of "Deep Blue blog". You are welcome to reprint them. Please note the following source when reprinting them. Otherwise, you will be held legally liable for copyright.
Deep Blue blog: http://blog.csdn.net/huangyanlong/article/details/42739693