http://www.cnblogs.com/hedalixin/archive/2011/12/08/2277183.html
omcat7默认不允许admin登陆,安装后需要手动进行设置才能登陆
在X:\tomact\conf\tomact_user.xml
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
</tomcat-users>
后面加上一条就可以了
<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
<role rolename="tomcat"/>
<role rolename="role1"/>
<role rolename="manager"/>
<role rolename="admin"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
<user username="admin" password="admin" roles="manager-gui,manager-script,manager-status,manager-jmx"/>
</tomcat-users>
复制代码
设置admin密码为admin,最高权限
我自己的配置
<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"/>
<user username="tomcat" password="tomcat" roles="tomcat"/>
<user username="both" password="tomcat" roles="tomcat,role1"/>
<user username="role1" password="tomcat" roles="role1"/>
-->
<role rolename="tomcat"/>
<role rolename="manager"/>
<role rolename="manager-script"/>
<role rolename="manager-status"/>
<role rolename="manager-jmx"/>
<role rolename="manager-gui"/>
<role rolename="admin"/>
<role rolename="admin-gui"/>
<user username="admin" password="admin" roles="admin,admin-gui,manager,manager-gui,manager-script,manager-status,manager-jmx"/>
</tomcat-users>
分享到:
相关推荐
打开D:\apache-tomcat-5.5.25\conf下的tomcat-users.xml,添加下面一句: xml 代码 <user username="admin" password="admin" roles="admin,manager"/> 启动tomcat,然后打开IE:http://localhost:8080,点击...
6.conf目录下的tomcat-users.xml添加如下代码: <role rolename="admin"/> <user username="admin" password="admin" roles="manager,admin"/> 登陆时用户名:admin ,密码:admin 7.webapps/root目录下的index.html...
选择“tomcat-users.xml”文件,打开文件后在最后 一行代码的前面添加如下代码: <role rolename="manager-gui"/> <role rolename="admin-gui"/> <user username="admin或tomcat" password="admin" roles=...
打开D:\apache-tomcat-5.5.26\conf下的tomcat-users.xml,添加下面一句: xml 代码 <user username="admin" password="admin" roles="admin,manager"/> 启动tomcat,然后打开IE:http://localhost:8080,点击...
在conf文件目录对tomcat-users.xml 文件中<user username="admin" password="****" roles="admin-gui"/> <user username="tomcat" password="tomcat" roles="manager-gui"/>设置下密码再在bin文件中启动startup.bat...
4.配置tomcat-users.xml文件 <tomcat-users></tomcat-users>标签内添加,具体的权限配置,查看下面表格 <role rolename="tomcat"/> <user username="tomcat"password="tomcat"roles="manager,power...
<?xml version="1.0" encoding="utf-8" ?> - <tomcat-users> <role rolename="manager" /> <role rolename="admin" /> <user username="admin" password="" roles="admin,manager" /> </tomcat-users>
tomcat-users.xml 333 catalina.policy 333 catalina.properties 334 context.xml 335 8. Debugging and Troubleshooting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 336 Reading ...
还有一个地方需要设置, 在 conf/tomcat-users.xml 中添加 manager 账户, probe 需要这个账户才能正确登录使用. 如果不知道怎么做, 你可以把文件内容改成这样即可拥有一个用户名和密码都为 admin 的 管理员账户: &...
docker run --name dubbo-admin -p 18080:8080 -v /root/dubbo-admin/tomcat-users.xml:/usr/local/tomcat/conf/tomcat-users.xml -v /root/dubbo-admin/log:/usr/local/tomcat/logs tomcat:8.5
5、修改tomcat-users.xml <?xml version=‘1.0’ encoding='utf-8'?> <role rolename="manager-gui"/> <user username="admin" password="secret" roles="standard,manager-gui" /> </tomcat-users>
" " "2、Tomcat 4.1.37、5.5.27和6.0.18这三个版本及以后发行的 " " "版本默认都不存在admin.xml配置文件。 " "基线符合性"1、判定条件 " "判定依据 "各帐号都可以登录Tomcat Web服务器为正常 " " "2、检测操作 " ...
在Tomcat5.5.27的根目录下conf文件夹里的tomcat-users.xml里, </tomcat>之前加上一行 ”admin” password=”admin” roles=”admin,manager”/> 既admin包的登陆账号,用户名admin, 密码admin. 4.
Tomcat的管理员设置 在tomcat下的conf目录中的tomcat-user.xml文件中可以配置tomcat的用户角色 <tomcat-users> <role rolename="admin"/><!--设定角色的名字,admin是管理员,manager是项目管理--> <!--设定用户名...
Tomcat配准,conf/tomcat-users.xml加入如下参数: <role rolename="manager-gui"/> <user username="admin" password="admin" roles="manager-gui"/> sudo /etc/init.d/tomcat7 restart ...
快速安装(从Tomcat 7开始) 添加位于Tomcat的conf目录中的tomcat-users.xml文件,以“ manager-script ”角色访问“ admin ”用户。< role xss=removed>< user username = " admin " password =
it is desirable to have a single copy of a Tomcat binary distribution shared among multiple users on the same server. To make this possible, you can pass a "-Dcatalina.base=$CATALINA_BASE" ...
> 输入用户名 admin,密码 admin@2015,验证成功后将会重定向到http://127.0.0.1:8081/node1//users/loginSuccess ,也就是node1系统的主页,里面的节点2代表的是node2系统的主页,你会发现我们不需要登录到node2...
编辑远程tomcat服务器下的conf/tomcat-users.xml,在末尾增加(其实只要拉到文件末尾,去掉注释改一下就可以了) <role rolename=manager-gui/> <role rolename=manager-script/> <user username=admin password=...
它是基于 Web + AJAX 的, 无刷新实时画图. <br>如何安装: 先下载 ZIP 文件(LambdaProbe 1.7b, BINARIES ~7Mb), 解压后只需要发布probe.war文件到 Tomcat 服务器的 webapps 目录下. 支持的Tomcat 服务器版本: 5.0...