tomcat监控工具probe

  1. probe官网:http://www.lambdaprobe.org/
    但是已经链接至github了:https://github.com/psi-probe/psi-probe

  2. 下载psi-probe-web-3.1.0.war

  3. tomcat配置./conf/user.xml

     <role rolename="manager-gui "/>
    
     <!-- 用户设置密码、角色 -->
     <user username="admin" password="admin" roles="manager-gui"/>
    

    下面这些配置也是必须的,否则上面设置的用户无法登陆
    ./conf/server.xml的Server/GlobalNamingResources下

     <!-- Global JNDI resources
        Documentation at /docs/jndi-resources-howto.html
     -->
     <GlobalNamingResources>
         <!-- Editable user database that can also be used by
             UserDatabaseRealm to authenticate users
         -->
         <Resource name="UserDatabase" auth="Container"
                 type="org.apache.catalina.UserDatabase"
                 description="User database that can be updated and saved"
                 factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
                 pathname="conf/tomcat-users.xml" />
     </GlobalNamingResources>
    

    ./conf/server.xml的Server/Service/Engine下

     <!-- Use the LockOutRealm to prevent attempts to guess user passwords
            via a brute-force attack -->
     <Realm className="org.apache.catalina.realm.LockOutRealm">
     <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
     <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
             resourceName="UserDatabase"/>
     </Realm>
    
  4. 部署war包

  5. 安装官方文档:
    https://github.com/psi-probe/psi-probe/wiki/InstallationApacheTomcat

  6. 角色及支持的特性信
    https://github.com/psi-probe/psi-probe/wiki/Features#features-by-role

posted @ 2018-10-11 00:19  liqipeng  阅读(1749)  评论(0)    收藏  举报