tomcat配置了角色,但是控制台登陆不了
<?xmlversion='1.0'encoding='utf-8'?><tomcat-users><!--<rolerolename="tomcat"/><rolero...
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
<!--1.增加一个角色,指定角色名-->
<role rolename="manager-gui" />
<!--2.增加一个用户-->
<user username="manager" password="manager" roles="manager-gui" />
<!--
<role rolename="manager"/>
<role rolename="admin" />
<user username="admin" password="admin" roles="manager,admin" />
-->
</tomcat-users> 展开
<tomcat-users>
<!--
<role rolename="tomcat"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
<!--1.增加一个角色,指定角色名-->
<role rolename="manager-gui" />
<!--2.增加一个用户-->
<user username="manager" password="manager" roles="manager-gui" />
<!--
<role rolename="manager"/>
<role rolename="admin" />
<user username="admin" password="admin" roles="manager,admin" />
-->
</tomcat-users> 展开
- 你的回答被采纳后将获得:
- 系统奖励15(财富值+成长值)+难题奖励30(财富值+成长值)
1个回答
展开全部
我的版本是7.0 是没问题的,给你参考一下;
<role rolename="tomcat"/>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="manager,admini,manager-gui,admin-gui"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<role rolename="tomcat"/>
<role rolename="manager-gui"/>
<role rolename="admin-gui"/>
<role rolename="role1"/>
<user username="tomcat" password="tomcat" roles="manager,admini,manager-gui,admin-gui"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询