centos7安装tomcat

2020-04-06  本文已影响0人  火星凯撒

1、yum install tomcat

2、修改/etc/tomcat/server.xml

在节点

<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">

</Host>

中添加web页目录

<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true">

<Context path="" docBase="/usr/local/html" reloadable="true" />

</Host>

上一篇 下一篇

猜你喜欢

热点阅读