1. 程式人生 > >tomcat部署專案,修改專案名,配置專案路徑

tomcat部署專案,修改專案名,配置專案路徑

1.在tomcat安裝路徑下找到server.xml

 

 

2.在<主機名=“localhost”appBase =“webapps”節點下面新增

(1)這個情況是不需要專案名 :  <Context path =“/” docBase =“E:/deploy/project” reloadable =“false”allowLinking =“true”> </ Context>

(2)這個情況是訪問專案入口為project :  <Context path =“/project” docBase =“/ project / tomcat7 / webapps / cxg-interactiveweb”reloadable =“false”allowLinking =“true”> </ Context>

docBase 是配置專案存放路徑的, 一般情況是  專案放在tomcat/webapps下

可以放在別的地方,  需要指定路徑