Tomcat8配置tomcat-users.xml配置
来源:互联网 发布:手机直播点歌软件 编辑:程序博客网 时间:2024/06/05 21:55
默认tomcat-user.xml中的角色和用户配置示例如下:
<!--
<role rolename="tomcat"/><role rolename="role1"/>
<user username="tomcat" password="<must-be-changed>" roles="tomcat"/>
<user username="both" password="<must-be-changed>" roles="tomcat,role1"/>
<user username="role1" password="<must-be-changed>" roles="role1"/>
-->
如果仅把上述内容去掉并修改密码,重启tomcat后访问http://localhost:8081/manager/html,会报403 Access Denied无法登录管理界面。
正确的配置如下:
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="admin" password="111111" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
原因是tomcat8中定义了以下4种角色,所以配置文件中的角色名称是不能任意填写的。
- manager-gui - allows access to the HTML GUI and the status pages
- manager-script - allows access to the text interface and the status pages
- manager-jmx - allows access to the JMX proxy and the status pages
- manager-status - allows access to the status pages only
阅读全文
1 0
- Tomcat8配置tomcat-users.xml配置
- Tomcat8.x登陆问题,tomcat-users.xml配置问题
- tomcat-users.xml 配置
- 配置tomcat-users.xml
- tomcat-users.xml文件配置
- tomcat-users.xml文件配置
- tomcat 中的 tomcat-users.xml 配置不生效原因 + tomcat8以上管理页面提示403问题解决方案
- Tomcat tomcat-users.xml 配置用户
- Tomcat里的tomcat-users.xml配置
- tomcat-users.xml(tomcat 7)配置
- Tomcat 配置2 tomcat-users.xml
- tomcat-users.xml配置Manager登陆用户
- Linux下tomcat-7.0.11中tomcat-users.xml配置
- 关于tomcat 中的 tomcat-users.xml 配置不生效原因
- 关于tomcat 中的 tomcat-users.xml 配置不生效原因
- 关于tomcat 中的 tomcat-users.xml 配置不生效原因
- tomcat-users.xml配置不生效的原因
- tomcat-users.xml 里面用户配置 默认是注释的
- [模板]-线段树-区间修改 + 区间查询
- ggplot2图形解析
- java控制台学生管理系统
- Python进阶学习笔记——函数式编程之返回函数&闭包
- Eigen matrix to Matlab .mat
- Tomcat8配置tomcat-users.xml配置
- 探索React----第一章:ReactRouterV2基础
- selenium不能调用chrome v54 打开网页
- Java Web基础 Action+Service +Dao三层的功能划分
- UAC关闭设置
- ACM-9月3日周日周末训练心得
- IJKPlayer播放视频黑屏但是有声音
- Codeforces849D Rooter's Song
- HDU 5875 Function (RMQ+二分)