Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
假设我的网站地址是 www.example.com,我已经在服务器上上传了我的 java 应用程序,但它只能在 www.example.com:8080/MyApp 上访问,如何将其更改为正常的 url?这是 www.example.com
编辑位于 conf 目录中的 server.xml 文件。寻找应设置为 8080 的连接器。应该如下所示...
连接器端口="8080" 协议="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
连接器端口="8080" 协议="HTTP/1.1"
connectionTimeout="20000" redirectPort="8443" />
如下将 8080 更改为 80 并重新启动 Tomcat 服务。
连接器端口="80" 协议="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />
连接器端口="80" 协议="HTTP/1.1"