Home  >  Article  >  Web Front-end  >  What are the default ports of tomcat server?

What are the default ports of tomcat server?

下次还敢
下次还敢Original
2024-04-21 06:52:16714browse

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

What are the default ports of tomcat server?

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

  • HTTP:8080
  • HTTPS:8443
  • AJP:8009

Tomcat 8 and above

  • HTTP:8080
  • HTTPS:8443
  • AJP:8009
  • JMX: 8005

Other ports

  • Administrator port: 8081 (Tomcat 6 and later lower version), 8089 (Tomcat 7 and above)
  • Debug port: 8082 (all versions)
  • Management console port: 8080 (Tomcat 7 and earlier), 8081 (Tomcat 8 and later)
  • Connectors Port: Configurable

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:

  • Ports 80 and 443 are typically used for HTTP and HTTPS traffic, it is recommended not to configure Tomcat to listen on these ports.
  • Ports below 1024 usually require root privileges.

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn