Skip to content

Instantly share code, notes, and snippets.

@aliencode
Created March 19, 2014 07:33
Show Gist options
  • Save aliencode/9637040 to your computer and use it in GitHub Desktop.
Save aliencode/9637040 to your computer and use it in GitHub Desktop.
Tomcat 管理员 权限配置
<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="1" roles="tomcat"/>
<user username="both" password="1" roles="tomcat,role1"/>
<user username="role1" password="1" roles="role1"/>
<role rolename="admin-gui"/>
<role rolename="manager-gui"/>
<role rolename="manager-script"/>
<role rolename="manager-status"/>
<role rolename="manager-jmx"/>
<user username="tomcatadm" password="1" roles="admin-gui,manager-gui,manager-script,manager-status,manager-jmx"/>
</tomcat-users>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment