您的位置:首页 > 理论基础 > 计算机网络

在安装tomcat的时候,没有设置,现在访问 http://localhost:8080/manager/html,要密码

2014-03-07 21:29 561 查看
在安装tomcat的时候,直接解压免安装的,现在访问
http://localhost:8080/manager/html,要密码,提示:http://localhost:8080 请求用户名和密码。信息为: “Tomcat Manager Application”

解决方法:

在 \Tomcat 6.0\conf 目录下的 tomcat-users.xml文件件中可以设置。

在<tomcat-users></tomcat-users>之间添加代码<role rolename="manager-gui"/>

<user username="admin" password="admin" roles="manager-gui"/>就可以设置密码。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: