maven仓库找不到cat-core的jar:
1 去/home/apache-tomcat-7_2/webapps/cat/WEB-INF/lib下载
cat-core-1.4.0.jar到本地电脑
2
mvn install:install-file -Dfile=C:UsersAdministratorDesktopcat-mvn-repocat-core-1.4.0.jar -DgroupId=com.dianping.cat -DartifactId=cat-core -Dversion=1.4.0 -Dpackaging=jar
D:devapache-maven-3.3.9>cd bin
D:devapache-maven-3.3.9in>mvn install:install-file -Dfile=C:UsersAdministr
atorDesktopcat-mvn-repocat-core-1.4.0.jar -DgroupId=com.dianping.cat -Dartifa
ctId=cat-core -Dversion=1.4.0 -Dpackaging=jar
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Maven Stub Project (No POM) 1
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-install-plugin:2.4:install-file (default-cli) @ standalone-pom
---
[INFO] Installing C:UsersAdministratorDesktopcat-mvn-repocat-core-1.4.0.jar
to D:devmaven-pro
eposcomdianpingcatcat-core1.4.0cat-core-1.4.0.jar
[INFO] Installing C:UsersADMINI~1AppDataLocalTempmvninstall795301035505687
052.pom to D:devmaven-pro
eposcomdianpingcatcat-core1.4.0cat-core-1.4.0
.pom
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.044 s
[INFO] Finished at: 2017-10-08T11:05:37+08:00
[INFO] Final Memory: 8M/115M
[INFO] ------------------------------------------------------------------------
同样的方法安装cat-client
击右上角的登陆,用账号和密码都是catadmin来登陆,在“配置”的最后一项“全局告警配置”的“客户端路由”里面改为127.0.0.1:2280后,提交刷新实时页面。
cat 的war存放路径:
/home/apache-tomcat-7_2/webapps/cat.war