Neurohazard
暮雲煙月,皓首窮經;森羅萬象,如是我聞。

Tomcat 开启 Server Status, Manager App, Host Manager 等组件

wpadmin~August 21, 2018 /System Management

Tomcat 开启 Server Status, Manager App, Host Manager 等组件

测试环境

Windows 10 x64
apache-tomcat-7.0.90.exe (32-bit/64-bit Windows Service Installer)

配置

1 找到 Tomcat 的安装路径 D:\Program Files\Tomcat7
2 修改配置文件 conf/tomcat-users.xml

添加类似如下内容

<?xml version='1.0' encoding='cp936'?>
<tomcat-users>
  <role rolename="manager-gui"/>
  <role rolename="manager"/>
  <role rolename="manager-script"/>
  <role rolename="manager-jmx"/>
  <role rolename="admin"/>
  <role rolename="admin-gui"/>
  <role rolename="admin-script"/>
  <user username="monitor" password="monitor" roles="manager,manager-gui"/>
  <user username="tomcat" password="tomcat" roles="admin-gui,admin,manager-gui,manager"/>
  <user username="tomcat2" password="tomcat2" roles="admin,admin-gui,manager,manager-gui,manager-script,manager-jmx"/>
</tomcat-users>

之后即可使用 monitor/monitor 登陆。
访问 Server Status, Manager App, Host Manager 等组件。

Leave a Reply

Your email address will not be published. Required fields are marked *