tomcat5.5绿色版管理员用户的密码
请问是用绿色版的tomcat5.5web容器,他的管理员密码是什么
作者: yzdiandiandidi 发布时间: 2011-04-10
Tomcat 5以后的manager因为安全缘故不能用默认的admin用户登录,这样会给调程序带来一定的麻烦,可通过如下方法解决:
在tomcat安装目录的conf文件夹里找到tomcat-usr.xml(即在%tomact%conf/tomcat-user.xml中),内容修改为以下:
<?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="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
作完以上修改后,重启Tomcat Server即可。
<?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="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
至于这里的密码,你已看到了
在tomcat安装目录的conf文件夹里找到tomcat-usr.xml(即在%tomact%conf/tomcat-user.xml中),内容修改为以下:
<?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="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
作完以上修改后,重启Tomcat Server即可。
<?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="admin" password="admin" roles="admin,manager"/>
</tomcat-users>
至于这里的密码,你已看到了
作者: theforever 发布时间: 2011-04-10