zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    java
    java
    java
    js
    java
    异常之异常处理
    面向对象之元类
    面向对象之内置方法
    面向对象之反射
    面向对象之类方法与静态方法
  • 原文地址:https://www.cnblogs.com/liqipeng/p/9770073.html
Copyright © 2011-2022 走看看