tomcat 登录用户名 与 密码设置
来源:互联网 发布:用php做一个表格 编辑:程序博客网 时间:2024/05/21 21:34
401 UnauthorizedYou 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.<role rolename="manager-gui"/><user username="tomcat" password="s3cret" roles="manager-gui"/>Note that for Tomcat 6.0.30 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 pagesmanager-script - allows access to the text interface and the status pagesmanager-jmx - allows access to the JMX proxy and the status pagesmanager-status - allows access to the status pages onlyThe HTML interface is protected against CSRF but the text and JMX interfaces are not. To maintain the CSRF protection:The deprecated manager role should not be assigned to any user.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.
在使用Tomcat时,我们通过点击Tomcat Manager (如下图左侧所示)可以管理Tomcat服务器中的web工程;但是如何来设置用户名还有密码呢?看接下来的介绍:
Solutions:
1、登录用户名和密码我们需要在 目录:D:\apache-tomcat-6.0.35\conf\tomcat-users.xml 中修改如下配置:
<tomcat-users> <role rolename="manager"/> <user username="admin" password="admin" roles="manager"/> </tomcat-users>2、进入当前目录下的:context.xml 文件,并作如下修改<?xml version="1.0" encoding="UTF-8"?> <WatchedResource>WEB-INF/web.xml</WatchedResource> <Manager pathname="/manager" debug="0" privileged="true" docBase="/home/oracle/tomcat/apache-tomcat-6.0.18/webapps/manager" /> <Valve className="org.apache.catalina.valves.CometConnectionManagerValve" /> </Context>
完成这两部之后,重新启动一个tomcat ,即可输入刚才设置的用户名和密码,即可登录Tomcat 管理web project。
- tomcat 登录用户名 与 密码设置
- 重新设置tomcat 登录时用户名和密码
- 设置tomcat的用户名密码
- tomcat设置登陆用户名密码
- 设置tomcat用户名及密码
- Tomcat 7.0用户名与密码的设置问题
- Tomcat 7.0用户名与密码的设置问题
- Tomcat 7.0用户名与密码的设置问题
- Tomcat 7.0用户名与密码的设置问题
- tomcat登录的用户名和密码
- tomcat 登录时用户名和密码问题
- w3m 设置用户名密码自动登录
- apache设置用户名密码登录验证
- 重新设置Tomcat管理员用户名和密码
- 设置Tomcat Manager的用户名密码
- 重新设置Tomcat管理员用户名和密码
- 设置tomcat的登陆用户名和密码
- eclipse中设置tomcat用户名和密码
- Android服务的生命周期
- 1602液晶模块使用归纳
- vim中的窗口分割
- n个小孩围城一圈数数,数到 2^k, 就退出圈子。07年 C 语言最后一道![专硕]@NEU
- public class Square;square.draw(gl); // ( NEW )
- tomcat 登录用户名 与 密码设置
- Linux下tmpfs与ramfs的对比分析
- Android 控制Log打印类
- oracle quota
- How to Edit INF File?
- Windows ADSL+虚拟机Linux共享上网
- 对于IT公司问题你该怎么办
- 两棵二叉排序树合并为一颗 -- 07年 数据结构最后一道 [专硕]@NEU
- 屏蔽HOME键(4.0以下)