Javaweb Learning Summary -02 Tomcat learn and use

Source: Internet
Author: User
Tags server port tomcat server

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.