您的位置:首页 > 运维架构 > Tomcat

tomcat中关于更新类后重启服务的问题

2006-07-10 11:37 381 查看
版本:Tomcat 4.0
方法一:通过后台管理http://localhost:8080/manager/html 应用管理来RELOAD

方法二:修改conf/server.xml中相关的上下文<content>描述,指定 reloadable=true ;
模拟其中的example示例,将其中的example替换你的工程名

版本:Tomcat 5.0
假设工程名为:TTBM
在D:/Tomcat 5.0/conf/Catalina/localhost 下添加一个文件TTBM.xml,其内容为:
<!--

Context configuration file for the Tomcat Balancer Web App
This is only needed to keep the distribution small and avoid duplicating
commons libraries

$Id: balancer.xml,v 1.1 2003/11/20 21:43:32 remm Exp $

-->

<Context path="/TTBM" docBase="TTBM" debug="0" privileged="true" reloadable="true">

</Context>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: