Jdk+myeclipse+tomcat configuration (Modify the port of Tomcat 6.x)

Source: Internet
Author: User
Tags server port tomcat server

Modify the Tomcat port, the Server.xml file in the Conf directory

For example, if you want to modify the port to 8080, change the value of port to 8081, and the remaining value will be unchanged.

Access via Tomcat server

To access this page through a browser, you need to configure the relevant path in Tomcat:

Find the conf directory for Tomcat and have a file called Server.xml .

Use the editor to open the file, pull to the end, and add this line before the host tag ends:

<context path= "/helloweb" docbase= "E:\MDD\MyEclipseWorkspace\HelloWeb\WebRoot" reloadable= "true"/>

Note the Context first letter capitalized.

   The Path property value is required to access the page, followed by the first pathname after the server port number, where the \ Plus project name (with a different name) is used. Slashes cannot be less.

The name to be given here corresponds to the address visited in the browser (see the path name after port number 8080 below).

  docBase The Webroot path of the property value item.

Jdk+myeclipse+tomcat configuration (Modify the port of Tomcat 6.x)

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.