tomcat7用户管理

来源:互联网 发布:linux修改主机名命令 编辑:程序博客网 时间:2024/04/28 19:20

tomcat安装目录下,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"/>  <user username="tomcat" password="tomcat" roles="tomcat"/>  <user username="both" password="tomcat" roles="tomcat,role1"/>  <user username="role1" password="tomcat" roles="role1"/>-->    <role rolename="manager"/>        <role rolename="manager-gui"/>        <role rolename="admin"/>        <role rolename="admin-gui"/>        <user username="admin" password="admin" roles="admin-gui,admin,manager-gui,manager"/>  </tomcat-users>
0 0
原创粉丝点击