Tomcat6下的应用部署

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
PathDisplay NameRunningSessionsCommands
/Welcome to Tomcattrue0 Start   Stop   Reload   Undeploy 
/docsTomcat Documentationtrue0 Start   Stop   Reload   Undeploy 
/examples true0 Start   Stop   Reload   Undeploy 
/host-managerTomcat Manager Applicationtrue0 Start   Stop   Reload   Undeploy 
/managerTomcat Manager Applicationtrue2 Start   Stop   Reload   Undeploy 
/mywebMy Web Applicationtrue1 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应用。

 

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值