前提已經配置jdk和tomcat的運作環境
jdk環境配置&tomcat環境配置
開始通路我們的第1個html網頁配置
1.主要是對server.xml配置檔案的修改
(複制代碼内容添加到server.xml檔案中的如圖位置)
<Host name="106.75.169.238" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true" xmlValidation="false" xmlNamespaceAware="false">
<Context path="/Amay" docBase="Amay" debug="0" reloadable="true" crossContext="true"/>
<Logger className="org.apache.catalina.logger.FileLogger" directory="logs" prefix="Amay_log." suffix=".txt" timestamp="true"/>
</Host>
2.修改完成後,重新啟動tomcat
3.上傳html檔案到webapps目錄下,對應自己配置的檔案夾中,這樣就可以進行通路啦!
4.通路url:ip+端口+路徑+靜态網頁名稱
完!