1.在tomcat\conf\server.xml中</Host>下</Engine>上添加如下内容
<Host name="xx.194.130.93" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="htmlStable" debug="0" reloadable="true" crossContext="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="tot_log." suffix=".txt" timestamp="true"/>
</Host>
<Host name="你的ip地址"
<Context path="" docBase="放在webapps下html文件夹名"
我的HTML 文件名叫 htmlStable
2.启动tomcat
3.访问