tomcat 7.0.11 manager app host manager 访问错误 密码 确保无误
题目
tomcat 7.0.11 manager app host manager 访问错误 密码 确保无误
401 Unauthorized
You are not authorized to view this page.If you have not changed any configuration files,please examine the file conf/tomcat-users.xml in your installation.That file must contain the credentials to let you use this webapp.
For example,to add the manager-gui role to a user named tomcat with a password of s3cret,add the following to the config file listed above.
Note that for Tomcat 7 onwards,the roles required to use the manager application were changed from the single manager role to the following four roles.You will need to assign the role(s) required for the functionality you wish to access.
•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
The HTML interface is protected against CSRF but the text and JMX interfaces are not.To maintain the CSRF protection:
•Users with the manager-gui role should not be granted either the manager-script or manager-jmx roles.
•If the text or jmx interfaces are accessed through a browser (e.g.for testing since these interfaces are intended for tools not humans) then the browser must be closed afterwards to terminate the session.
For more information - please see the Manager App HOW-TO.
答案
照我的复制到conf/tomcat-users.xml目录下就好,那段代码要去掉注释
xml version='1.0' encoding='utf-8'?>
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
最新试题
- 某人去水果批发市场采购香蕉,他看中了A、B两家香蕉.这两家香蕉品质一样,零售价都为6元/千克批发价批
- 一副扑克牌,从中任意抽牌,最少要抽几张,才能保证有3张是梅花花色的
- 某宾馆客房部有60个房间供游客居住,当每个房间的定价为每天200元时,房间可以住满.当每个房间每天的定价每增加10元时,就会有一个房间空闲.对有游客入住的房间,宾馆需对每个房间
- 闻的近义词是什么
- 碱金属元素的单质的密度随着原子序数的增大而递增 为什么?
- 快速判断同分异构体个数
- 如图,三棱锥P-ABC中,PA=PB,AC=BC,O为AB的中点,求证:AB⊥面OPC
- 英文字怎样写算漂亮
- all of us are satisfied, everything seems to be going on smoothly
- 幂函数 (27 16:32:49)
热门考点