`
Cash
  • 浏览: 176645 次
  • 性别: Icon_minigender_1
  • 来自: 沈阳
社区版块
存档分类
最新评论

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
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应用。

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics