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)