美文网首页
centos7安装tomcat

centos7安装tomcat

作者: 火星凯撒 | 来源:发表于2020-04-06 18:24 被阅读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>

相关文章

网友评论

      本文标题:centos7安装tomcat

      本文链接:https://www.haomeiwen.com/subject/ucabphtx.html