题目
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.
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.
提问时间:2021-03-27
答案
照我的复制到conf/tomcat-users.xml目录下就好,那段代码要去掉注释
xml version='1.0' encoding='utf-8'?>
xml version='1.0' encoding='utf-8'?>
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
- 1某人去水果批发市场采购香蕉,他看中了A、B两家香蕉.这两家香蕉品质一样,零售价都为6元/千克批发价批
- 2一副扑克牌,从中任意抽牌,最少要抽几张,才能保证有3张是梅花花色的
- 3某宾馆客房部有60个房间供游客居住,当每个房间的定价为每天200元时,房间可以住满.当每个房间每天的定价每增加10元时,就会有一个房间空闲.对有游客入住的房间,宾馆需对每个房间
- 4闻的近义词是什么
- 5碱金属元素的单质的密度随着原子序数的增大而递增 为什么?
- 6快速判断同分异构体个数
- 7如图,三棱锥P-ABC中,PA=PB,AC=BC,O为AB的中点,求证:AB⊥面OPC
- 8英文字怎样写算漂亮
- 9all of us are satisfied, everything seems to be going on smoothly
- 10幂函数 (27 16:32:49)
热门考点
- 1如果四个各不相等的整数的积等于9,那么这四个整数的绝对值的和为
- 2想象作文以《假如记忆可以移植》急今天下午就要用
- 3地板每块长30厘米,宽25厘米.每排6块共铺8排.面积是多少平方米
- 4五年级下册数学广角怎么列式
- 5写家庭趣事作文可以一定要写爸爸妈妈吗?
- 6y=sin2x+2sin方x的最大值和x的集合
- 7数学课讲的解题思路没有听懂怎么办?
- 8我国很早就有人掌握了养蚕、编织丝绸等技术.其中有一道工序是将蚕茧用热水浸泡后缫丝,此时茧内的家蚕发育到哪一阶段( ) A.蛹 B.幼虫 C.卵 D.成虫
- 9如图,梯形ABCD中,AD∥BC,∠BAD=90°,对角线BD⊥DC,△ABD与△BCD相似吗?为什么?
- 10“make due allowance”应该怎样理解?