Tomcat5.5的管理模块需要注意什么?
Tomcat5.5的管理模块需要注意什么?
作者fbysss
msn:jameslastchina@hotmail.com
blog:blog.csdn.net/fbysss
声明:本文由fbysss原创,转载请注明出处
关键字:Tomcat, admin
Tomcat5.5默认没有admin模块了.得单独去网站下.下载后,根据相同目录结构拷贝到tomcat下.另外需要注意几个地方:否则点击Tomcat Administration会出现"Tomcat's administration web application is no longer installed by default. Download and install the "admin" package to use it."的提示.
1.conf/tomcat_user.xml修改如下,(原来没有admin和manager,这里添加了两个角色和一个用户fbysss)
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="fbysss" password="fbysss" roles="admin,manager"/>
</tomcat-users>
2.确保conf/Catalina/localhost下有admin.xml,manager.xml文件.我就是把这几个文件弄掉了,半天没整好.