step1.新建文件%tomcat_home%/conf/Catalina/localhost/manager.xml
内容如下
<?xml version="1.0" encoding="UTF-8">
<Context privileged="true" antiResourceLocking="false"
docBase="${catalina.home}/webapps/manager">
<Valve className="org.apache.catalina.valves.RemoteAddrValve"
allow="127\.0\.0\.1" />
</Context>
allow可以添加多个
step2.修改%tomcat_home%/conf/tomcat-users.xml
放开注释掉的内容,并修改
<role rolename="tomcat"/>
<role rolename="manager-gui"/>
<role rolename="manager-status"/>
<user username="tomcat" password="123456" roles="tomcat,manager-gui,manager-status"/>
step3.下载下载psi-probe
路径如下:https://github.com/psi-probe/psi-probe
step4.编译打包
mvn clean package
step5.复制war包
把psi-probe-master\web\target下的war包放到tomcat的目录webappes,重启tomcat
step6.访问psi-probe
localhost:8080/probe