如何让 Tomcat 服务器对外网访问
要让 Tomcat 服务器对外网访问,需要进行以下配置:
1. 允许外部连接
- 修改 Tomcat 配置文件 server.xml,在
<connector></connector>
元素中添加或修改以下行:
<code class="xml"><connector port="8080" protocol="HTTP/1.1" connectiontimeout="20000" redirectport="8443"></connector>
如何让 Tomcat 服务器对外网访问
要让 Tomcat 服务器对外网访问,需要进行以下配置:
1. 允许外部连接
<connector></connector>
元素中添加或修改以下行:<code class="xml"><connector port="8080" protocol="HTTP/1.1" connectiontimeout="20000" redirectport="8443"></connector>
之前