我尝试登录Tomcat Manager应用程序,但登录总是失败,并显示错误401 Unauthorized。
Tomcat v8.0.30Debian,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"/>
以防万一,尝试添加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"/>