| Context Path (optional): | |
| XML Configuration file URL: | |
| WAR or Directory URL: |
上图为tomcat6的 /manager 管理台内容:
Context Path :指定当前应用使用的访问路径名
Xml Configuration file URL :指定当前应用的 web.xml 配置文件路径名
War or Directory URL :指定web应用的资源文件存放路径名
当应用别部署后会在应用列表中显示出来,刚刚部署的应用:(比例为myweb)
| Applications | ||||
| Path | Display Name | Running | Sessions | Commands |
| / | Welcome to Tomcat | true | 0 | Start Stop Reload Undeploy |
| /docs | Tomcat Documentation | true | 0 | Start Stop Reload Undeploy |
| /examples | true | 0 | Start Stop Reload Undeploy | |
| /host-manager | Tomcat Manager Application | true | 0 | Start Stop Reload Undeploy |
| /manager | Tomcat Manager Application | true | 2 | Start Stop Reload Undeploy |
| /myweb | My Web Application | true | 1 | Start Stop Reload Undeploy |
单击web应用相应列表项后面的 [Start] 链接使应用启动!
使用浏览器访问 http://127.0.0.1:8080/myweb/test.jsp (test.jsp是我的测试页面)
注意:应用部署后相应的资源文件会在tomcat6安装目录下产生新的Copy版本。当web运行时,web应用运行的是tomcat6目录下从部署资源文件夹中Copy的版本,若web应用中的相关资源代码有改动,应该改写tomcat6安装目录下被copy过来的文件或重新发布该web应用。
本文介绍了Tomcat6中应用的部署过程及管理界面的基本操作,包括如何设置应用的访问路径、配置文件路径及资源文件路径等内容,并提供了启动、停止等操作的方法。
314

被折叠的 条评论
为什么被折叠?



