码迷,mamicode.com
首页 > 系统相关 > 详细

linux tomcat的tomcat-users.xml配置管理用户

时间:2015-01-07 19:05:25      阅读:219      评论:0      收藏:0      [点我收藏+]

标签:linux

1.root@nginx ~]# vi /usr/local/tomcat/apache-tomcat-8.0.14/conf/tomcat-users.xml

添加如下红色部份

<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"/>
      <role rolename="admin"/>
      <role rolename="admin-gui"/>
      <role rolename="admin-script"/>
      <role rolename="manager-gui"/>
      <role rolename="manager-script"/>
      <role rolename="manager-jmx"/>
      <role rolename="manager-status"/>
      <user username="admin" password="vqiao" roles="admin,manager,role1,tomcat,admin-gui,admin-script,manager-gui,manager-script,manager-jmx,manager-status" />

</tomcat-users>

2.保存,退出

3.重启tomcat

[root@nginx ~]# /usr/local/tomcat/apache-tomcat-8.0.14/bin/startup.sh

linux tomcat的tomcat-users.xml配置管理用户

标签:linux

原文地址:http://vqiao.blog.51cto.com/9368913/1600328

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!