1.在tomcat\conf\server.xml中</Host>下</Engine>上添加如下内容
<Host name="127.0.0.1" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="" docBase="html" debug="0" reloadable="true" crossContext="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="tot_log." suffix=".txt" timestamp="true"/>
</Host>
2 <Host name="你的IP地址"
<Context path="" docBase="html" html为您在webapps文件夹存储html的文件名
3 启动tomcat并输入 127.0.0.1:8080/html/index.html(127.0.0.1:8080/html/) index.html为html文件夹下需要部署的html文件名