登入Tomcat Manager时出现401错误——解决方法
来源:互联网 发布:linux patsubst 编辑:程序博客网 时间:2024/06/01 08:17
要进入Tomcat Manager得先进行配置,进入tomcat解压目录->conf,对tomcat-users.xml进行修改。在这个文件中添加manager角色,并为管理员添加上这种角色即可
<?xml version='1.0' encoding='utf-8'?><tomcat-users> <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <user username="admin" password="admin" roles="manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/></tomcat-users>
做了上面的改变如果还是有错误,请看下面:
<tomcat-users><!-- NOTE: By default, no user is included in the "manager-gui" role required to operate the "/manager/html" web application. If you wish to use this app, you must define such a user - the username and password are arbitrary.--><!-- NOTE: The sample user and role entries below are wrapped in a comment and thus are ignored when reading this file. Do not forget to remove <!.. ..> that surrounds them.--><!-- <role rolename="tomcat"/> <role rolename="role1"/> <role rolename="manager"/> <user username="admin" password="admin" roles="manager"/> <user username="tomcat" password="tomcat" roles="tomcat"/> <user username="both" password="tomcat" roles="tomcat,role1"/> <user username="role1" password="tomcat" roles="role1"/>--></tomcat-users>
把红色的线去掉就可以了,因为<!-->所包括的东西是要被忽略的,相当于注释的作用!
0 0
- 登入Tomcat Manager时出现401错误——解决方法
- TOMCAT manager 出现403错误
- cygwin配置ssh免密码登入错误及其解决方法
- Tomcat manager登录失败——401 Unauthorized错误
- curl — — 获取登入cookie
- msn不能登入80048820错误
- ubuntu登入界面错误解决
- 进入Tomcat Manager出现 HTTP Status 403错误(转)
- 學習struts筆記2——登入示例
- 读书笔记——鸟哥(02)首次登入
- 软件测试——杯子、网页登入界面
- QQ同步登入出现 回调地址非法,请使用已注册的回调地址(21006)!错误解决办法
- 每次登入Ubuntu时候总是有错误对话框出现并且提示 E:Encountered a section with no Package: header,
- 用QQ邮箱登入foxmail出现问题
- VS2005无法登入sa账号,错误:18452
- Magento后台无法登入 报404错误
- php 结合redis 限制用户登入 密码错误次数
- CAS AJAX 登入错误提示信息修改
- 今天写代码,感觉不写代码,手就痒
- HTTP代理协议 HTTP/1.1的CONNECT方法
- discuz不支持jquery写法的解决办法
- WorkerMan 3.x 扩展安装心得
- caffe 实践程序4——cifar10网络
- 登入Tomcat Manager时出现401错误——解决方法
- vim 中OmniCppComplete的安装和使用
- discuz用到的几个函数
- Java经典书籍汇集
- [学习记录]__IPHONE_OS_VERSION_MIN_REQUIRED
- Python 解析 xml文档
- [iOS_Dev] UIWebView使用本地资源
- Ext 的confirm与window的confirm的区别
- linux netfilter/iptables全攻略