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>
网友评论