1、解析域名到对应的服务器ip

2、找到tomcat安装路径进入/conf

3、vi server.xml

4、修改<Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

改为<Connector port="80" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" />

5、在</host>后面加上

  <Host name="域名" appBase="webapps/项目名(可不写)"
          unpackWARs="true" xmlValidation="false" xmlNamespaceAware="false">
          <Context path="" docBase="." debug="0" reloadable="true"/>
        </Host> 
6、保存server.xml (esc :wq)
7、启动tomcat  就ok啦。

 

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/hanwenyi520/article/details/51012694

相关文章:

  • 2022-01-08
  • 2021-04-27
  • 2022-12-23
  • 2021-08-06
  • 2022-01-14
  • 2021-11-02
  • 2021-12-21
猜你喜欢
  • 2021-08-09
  • 2021-09-04
  • 2022-02-12
  • 2022-12-23
  • 2021-12-02
  • 2021-07-15
相关资源
相似解决方案