tomcat监控工具probe

本文详细介绍了如何使用Psi-Probe监控Tomcat应用服务器,包括从官网下载最新版本、配置Tomcat的user.xml和server.xml文件,以及部署war包的具体步骤。同时提供了角色及特性的相关信息。
  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

转载于:https://www.cnblogs.com/liqipeng/p/9770073.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值