开发者社区 问答 正文

Linux下Tomcat7 管理密码无效:报错

<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"/>
    <role rolename="manager"/>    
    <role rolename="manager-gui"/>    
    <role rolename="admin"/>    
    <role rolename="admin-gui"/>    
    <user username="admin" password="admin" roles="admin-gui,admin,manager-gui,manager"/>  

 

启动tomcat7后,在web页面那三个管理按钮输入账号全都不起作用???????????

展开
收起
kun坤 2020-06-06 00:20:58 511 分享 版权
1 条回答
写回答
取消 提交回答
  • 看了一下,在windows上是这样滴-------

     

    <tomcat-users>
    <user name="admin" password="admin" roles="admin-gui,manager-gui" />
    <!--
      NOTE:  By default, no user is included in the "manager-gui" role required
      to operate the "/manager/html" web application.  If you wish to use this app,
      you must define such a user - the username and password are arbitrary.
    -->
    <!--
      NOTE:  The sample user and role entries below are wrapped in a comment
      and thus are ignored when reading this file. Do not forget to remove
      <!.. ..> that surrounds them.
    -->
    <!--
      <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"/>
    -->
    </tomcat-users>

    2020-06-06 00:21:03
    赞同 展开评论