tomcat manager 配置

修改tomcat5028\conf\Catalina\localhost\manager.xml

<Context path="/manager" docBase="D:/tomcat5028/server/webapps/manager"
debug="0" privileged="true">

<!-- Link to the user database we will get roles from -->
<ResourceLink name="users" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>

</Context>

docBase为你的实际情况

tomcat5028\conftomcat-users.xml
添加用户,我的如下,你可以参照着改就可以了,用lixh,password:lixh就可以了

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

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