tomcat 7 已经安装成功,就是添加manager控制台用户时总不对,出现401 Unauthorized问题
我的tomcat-users.xml文件内容如下,就5行<?xmlversion='1.0'encoding='utf-8'?><tomcat-users><rolero...
我的tomcat-users.xml文件内容如下,就5行<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-gui"/>
<user username="admin" password="111111" roles="manager-gui"/>
</tomcat-users>
真不知哪里错了? 展开
<tomcat-users>
<role rolename="manager-gui"/>
<user username="admin" password="111111" roles="manager-gui"/>
</tomcat-users>
真不知哪里错了? 展开
展开全部
下面是我的配置,可以改成自己的密码
<?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="guoxunbob" roles="admin,manager"/>
</tomcat-users>
<?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="guoxunbob" roles="admin,manager"/>
</tomcat-users>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询