我尝试登录Tomcat Manager Application,但登录失败并显示错误401 Unauthorized。
Tomcat v8.0.30 Debian,Mozilla
$ CATALINA_HOME / conf / tomcat-users.xml中的用户:
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-script"/>
<user username="admin"
password="root"
roles="manager-gui,manager-status,manager-script"/>
答案 0 :(得分:0)
以防万一,尝试添加tomcat角色:
<role rolename="tomcat"/>
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<role rolename="manager-script"/>
<user username="admin"
password="root"
roles="tomcat,manager-gui,manager-status,manager-script"/>