我已经安装了tomcat 5.x,并在端口80上运行(使用mod_jk安装)。 / usr / share / tomcat / webapps /目录下的'manager','examples'和'ROOT'目录被删除,并且从一个正在工作的tomcat服务器上重build它们。 当我访问http:// localhost:8080 / manager / html (或) http:// localhost / manager / html时 ,即使在input正确的用户名和密码后,它仍会一直提示input密码。
你确定密码正确吗?
检查TOMCAT_HOME/conf/tomcat-users.xml
以查看用户是否分配了roles="manager"
对于你的tomcat-users.xml使用这个:
<?xml version='1.0' encoding='utf-8'?> <tomcat-users> <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <user username="tomcat" password="tomcat" roles="tomcat,manager"/> <user username="role1" password="tomcat" roles="role1"/> <user username="both" password="tomcat" roles="tomcat,role1"/> </tomcat-users>