Tomcat 的管理用户和角色设定

只知道tomcat-users.xml中配置的用户,系统自带角色有manager和admin两个 
但具体各自有什么作用,一直没着意弄明白。 

今天在无聊等待的过程,心血来潮在网上查了一下资料,也亲自实践了一把,证实可靠: 

原文: 
"Access to the manager application is protected by default: you need to define a user with the role "manager" in /etc/tomcat6/tomcat-users.xml before you can access it." 
"Access to the host-manager application is also protected by default: you need to define a user with the role "admin" in /etc/tomcat6/tomcat-users.xml before you can access it." 

manager和admin这两个角色,分别对应系统自带的两个应用manager和host-manager。 

另,tomcat文档中有提到: 
There are four roles defined by the manager application: 
manager-gui - Allows access to the html interface 
manager-script - Allows access to the plain text interface 
manager-jmx - Allows access to the JMX proxy interface 
manager-status - Allows access to the read-only status pages 
(见:http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html 
 

 

转自:http://williamou.iteye.com/blog/1130434

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值