我在配置tomcat时,在tomcat-users.xml中加入一个管理员用户
<user name="zf" password="zf" roles="standard,manager" /> 然后,http://localhost:8080/manager/,会弹出对话框,输入上面的用户名和密码 可总进不去,报错为: FAIL - Unknown command 怎么回事? --------------------------------------------------------------- 重新启动TOMCAT 不行就重装 --------------------------------------------------------------- 1,查看tomcat\webapps\manager\web-inf\web.xml: <auth-constraint> <!-- NOTE: This role is not present in the default users file --> <role-name>manager</role-name> </auth-constraint> 是否为manager 2,查看tomcat\conf\web.xml: <init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param> 是否为true |
|