![]() Suppose there are two Tomcats on a server and one of the Tomcats uses the default port number 8080. Configure ports when there are multiple Tomcats on a server If the port number is modified to 80, then the port number can be omitted when accessing Tomcat in other words, directly input the browser to jump to the welcome screen of Tomcat.ģ. To modify the port number of Tomcat, you just need to modify %tomcat_home%\conf\server.xml.įor instance, to modify the port number to 8081, you can open server.xml with the text editor, find the label Connector and modify the port attribute value to “8081”: Configure a port when there is only one Tomcat on a server On a server, if another application occupies port 8080, Tomcat will fail to be started normally, in which case you have to configure a new port for Tomcat.Ģ) If a number of Tomcats run on a server, then you have to configure a separate port for each Tomcat.Ģ. Ports are distinguished from each other by port numbers and port configuration is to assign a unique port number to an application.ġ) The default port number of Tomcat is 8080. On a server, each application needs an independent port to ensure normal communication.
0 Comments
Leave a Reply. |