Configuration of a Tomcat server port
All of Tomcat's configuration is placed in the Conf folder, where the Server.xml file is the core file of the configuration.
If you want to modify the boot port of the Tomcat server, you can modify the port on the connector node in the Server.xml configuration file
Example: Change the boot port of the Tomcat server from the default 8080 to 80 port
Tomcat Server boot Port default configuration
<connector port="8080" protocol="http/1.1" ConnectionTimeout="20000" redirectport=" 8443 "/>ort="8443 "/>
Modify the Tomcat server boot port to port 80
<connector port= "protocol="http/1.1" ConnectionTimeout="20000" redirectport=" 8443 "/>ort="8443 "/>
This will change the original default Tomcat default 8080 port to 80 port, it should be noted that once the server *.xml file changes, the Tomcat server must be restarted, after restarting will re-read the new configuration information. Because the Tomcat boot port has been modified to 80 in the Server.xml file, the Tomcat server starts with Port 80, as shown in:
Javaweb Learning Summary -02 Tomcat learn and use