Tomcat Manager登录的用户名、密码及用户角色配置

配置文件位置:$TOMCAT_ROOT\conf\tomcat-users.xml

默认值:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users></tomcat-users>

修改后:

<?xml version='1.0' encoding='utf-8'?>
<tomcat-users>
    <role rolename="manager"/>
    <role rolename="admin"/>
    <user username="admin" password="admin" roles="admin,manager"/>
</tomcat-users>

你可能感兴趣的:(tomcat,xml)