1. 程式人生 > >Linux下tomcat訪問具體檔案

Linux下tomcat訪問具體檔案

//如題,系統CentOS 6.8
//安裝tomcat後在 ./conf/server.xml
      <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">
後新增
      <Context path="/usr/local/tomcat/webapps/upgrades" docBase="/usr/local/tomcat/webapps/upgrades"/>
///usr/local/tomcat/webapps/upgrades是訪問的絕對路徑