环境
wget https://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-7/v7.0.85/bin/apache-tomcat-7.0.85.tar.gz
mv apache-tomcat-7.0.85 taokeeper-monitor
rm -rf taokeeper-monitor/webapps/*
cd taokeeper-monitor/webapps
wget https://github.com/downloads/alibaba/taokeeper/taokeeper.sql
wget https://github.com/downloads/alibaba/taokeeper/taokeeper-monitor.tar.gz
tar -zxvf taokeeper-monitor.tar.gz -C /data/client/taokeeper-monitor/webapps/
mv /data/client/taokeeper-monitor/webapps/taokeeper-monitor /data/client/taokeeper-monitor/webapps/ROOT
mkdir /data/client/taokeeper-monitor/webapps/conf
wget https://github.com/downloads/alibaba/taokeeper/taokeeper-monitor-config.properties
配置
taokeeper-monitor-config.properties
dbcp.dbJDBCUrl=jdbc:mysql://192.168.241.21:3306/taokeeper
dbcp.characterEncoding=utf-8
dbcp.username=root
dbcp.password=123456
SystemConstent.dataStoreBasePath=/data/client/taokeeper-monitor/dataStore
修改
/data/client/taokeeper-monitor/bin/catalina.sh
JAVA_OPTS=-DconfigFilePath="/data/client/taokeeper-monitor/webapps/ROOT/conf/taokeeper-monitor-config.properties"
需要安装nc 和 sshd
yum install -y nc
yum -y install openssh*
如果遇到机器监控不显示可以看这里
最后结果
这里提供快速通道http://download.csdn.net/download/liu_zhaoming/10252626
内置tomcat点击可运行