tomcat-7.0. 配置tomcat-users.xml

<?xml version='1.0' encoding='cp936'?>

<tomcat-users>

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

</tomcat-users>

 

注:版本不同 相关的配置也会有不同

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