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>