The default port of the Tomcat server depends on the Tomcat version: Tomcat 7 and earlier: HTTP: 8080HTTPS: 8443AJP: 8009Tomcat 8 and later: HTTP: 8080HTTPS: 8443AJP: 8009JMX: 8005
The default port of Tomcat server
Tomcat is a popular Java Servlet engine and Web server. Its default port varies depending on the version of Tomcat. Varies.
Tomcat 7 and earlier
Tomcat 8 and above
Other ports
Configurable Port
Tomcat's default port can be configured in the server.xml
configuration file. The <Connector>
element is used to configure a connector, where the port
attribute specifies the port number.
For example, the following configuration specifies that the HTTP connector uses port 1234:
<code class="xml"><Connector port="1234" protocol="HTTP/1.1" connectionTimeout="20000" /></code>
Note:
The above is the detailed content of What are the default ports of tomcat server?. For more information, please follow other related articles on the PHP Chinese website!