tomcat 7.0.21 后台权限登录
2011-09-17 15:31
197 查看
支持的角色权限查看在\webapps\manager\WEB-INF\web.xml中,在web.xml下查看
<security-role>
<description>
The role that is required to access the HTML Manager pages
</description>
<role-name>manager-gui</role-name>
</security-role>
<security-role>
<description>
The role that is required to access the text Manager pages
</description>
<role-name>manager-script</role-name>
</security-role>
<security-role>
<description>
The role that is required to access the HTML JMX Proxy
</description>
<role-name>manager-jmx</role-name>
</security-role>
<security-role>
<description>
The role that is required to access to the Manager Status pages
</description>
<role-name>manager-status</role-name>
</security-role>
说明支持四种角色:manager-gui、manager-script、manager-jmx、manager-status
然后在conf目录下的tomcat-users.xml中配置用户及角色,例如:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="nb" password="kb" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
</tomcat-users>
说明用户nb,秘密kb,支持四种角色,也可以配置一种或多种角色。
修改完tomcat-users.xml后重启tomcat服务,并且清空IE缓存密码表单等信息再次尝试登录!
<security-role>
<description>
The role that is required to access the HTML Manager pages
</description>
<role-name>manager-gui</role-name>
</security-role>
<security-role>
<description>
The role that is required to access the text Manager pages
</description>
<role-name>manager-script</role-name>
</security-role>
<security-role>
<description>
The role that is required to access the HTML JMX Proxy
</description>
<role-name>manager-jmx</role-name>
</security-role>
<security-role>
<description>
The role that is required to access to the Manager Status pages
</description>
<role-name>manager-status</role-name>
</security-role>
说明支持四种角色:manager-gui、manager-script、manager-jmx、manager-status
然后在conf目录下的tomcat-users.xml中配置用户及角色,例如:
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-jmx"/>
<role rolename="manager-status"/>
<user username="nb" password="kb" roles="manager-gui,manager-script,manager-jmx,manager-status"/>
</tomcat-users>
说明用户nb,秘密kb,支持四种角色,也可以配置一种或多种角色。
修改完tomcat-users.xml后重启tomcat服务,并且清空IE缓存密码表单等信息再次尝试登录!
相关文章推荐
- 对于tomcat后台登录异常处理
- SSH综合项目实战(快递) -- day11 shiro权限控制、后台用户登录
- 关于Tomcat7.0,后台登录403Access Denied问题
- Tomcat如何修改登录权限
- 为什么我登录不了apache-tomcat-7.0.21的Tomcat Manager?
- 转自百度文库:关于Tomcat7.0,后台登录403Access Denied问题
- solr基于tomcat增加主界面登录权限
- Tomcat 7.0.21-7.0.22 无法进入用户管理页面(403错误-权限不足)
- UPMS通用用户权限系统教程——后台系统登录
- Solr-----2、Solr后台管理配置登录权限
- nc 接口调用后台接口 校验登录权限 报错解决办法
- 关于shiro后台权限改动,重新登录后发现权限还是以前的问题的解决
- facebook快速登录常见错误:后台设置、域名权限、开发模式、公开、沙盒
- .net core 同时实现网站管理员后台、会员、WebApi登录及权限控制
- 要执行请求的操作,WordPress 需要访问您网页服务器的权限。 请输入您的 FTP 登录XXXX完美解决方法
- shiro-springmvc-mybatis登录认证 权限控制
- app与php后台接口登录认证、验证(seesion和token)
- android app微信登录(android端+Java后台)
- asp.net继承page类重写方法 实现最基本的用户登录验证 权限验证等
- Python 登录网站后台