1、直接部署到webapps [root@localhost opt]# cd apache-tomcat-6.0.45/webapps [root@localhost webapps]# ls li
1、直接部署到webapps
[root@localhost opt]# cd apache-tomcat-6.0.45/webapps
[root@localhost webapps]# ls
linuxTest
访问:http://192.168.0.105:8080/linuxTest/
2、其他路径的web
[root@localhost ~]# cd /opt/apache-tomcat-6.0.45/conf
[root@localhost conf]# ls
Catalina catalina.policy catalina.properties context.xml logging.properties server.xml tomcat-users.xml web.xml
[root@localhost conf]# vi server.xml
。。。
<Context docBase="/mnt/linuxTest" path="/abc" debug="0" reloadable="false" />
</Host>
</Engine>
</Service>
</Server>
访问:http://192.168.0.105:8080/abc/