tomcat监控配置tomcat-users.xml

监控tomcat7需要配置tomcat-users.xml

1、找到配置文件tomcat-users.xml,修改为如下内容,重启tomcat,进行访问就可以了

       <role rolename="tomcat"/>
      <role rolename="role1"/>
      <role rolename="admin"/>
      <role rolename="manager-gui"/>
      <role rolename="manager-script"/>
      <role rolename="manager-jmx"/>
      <role rolename="manager-status"/>
      <user username="tomcat" password="tomcat" roles="tomcat"/>
      <user username="both" password="tomcat" roles="tomcat,role1"/>
      <user username="role1" password="tomcat" roles="role1"/>
      <user username="admin" password="admin" roles="manager-gui,manager-script,manager-jmx,manager-status"/>

本文出自 “软件测试女” 博客,谢绝转载!

你可能感兴趣的:(监控,tomca,t监控配置)