`
m635674608
  • 浏览: 4942599 次
  • 性别: Icon_minigender_1
  • 来自: 南京
社区版块
存档分类
最新评论

taokeeper 架设与部署

 
阅读更多

相关下载:

 

taokeeper.sql

http://down.51cto.com/data/718756

 

taokeeper-monitor-config.properties

http://down.51cto.com/data/715439

 

taokeeper-monitor

http://down.51cto.com/data/715431

 

部署:

mysql:

mysql执行下载到的sql文件,并为相应用户赋权 最好 all privileges;

示例命令:

 

[plain] view plaincopy在CODE上查看代码片派生到我的代码片
 
  1. mysql -ucanal -pcanal < taokeeper.sql  
  2. grant all privileges on *.* to 'canal'@'%';  
  3. grant all privileges on *.* to 'canal'@'localhost';  
  4. flush privileges;  



 

 

tomcat:

修改JAVA_OPTS=-DconfigFilePath="/home/hp/servers/taokeeper-monitor/taokeeper-monitor-config.properties"

在tomcat根目录/bin/catalina.sh 中修改为 :

 

[plain] view plaincopy在CODE上查看代码片派生到我的代码片
 
  1. JAVA_OPTS=-DconfigFilePath="/home/hp/servers/taokeeper-monitor/taokeeper-monitor-config.properties"  



 

 

taokeeper:

创建一个taokeeper目录,我创建的是 /home/hp/servers/taokeeper-monitor 这个目录

把下载的war包放到 tomcat根目录/webapps/ 中

 

配置 下载的properties文件 我这里是放在taokeeper-monitor 目录中, 对应上面设置tomcat的JAVA_OPTS参数。

 

properties配置示例:(注意把SystemConstant.configOfMsgCenter 注释掉 )

 

[plain] view plaincopy在CODE上查看代码片派生到我的代码片
 
  1. #Daily-TB  
  2.   
  3. systemInfo.envName=DAILY-TB  
  4.   
  5. #DBCP  
  6. dbcp.driverClassName=com.mysql.jdbc.Driver  
  7. dbcp.dbJDBCUrl=jdbc:mysql://127.0.0.1:3306/taokeeper  
  8. dbcp.characterEncoding=GBK  
  9. dbcp.username=canal  
  10. dbcp.password=canal  
  11. dbcp.maxActive=30  
  12. dbcp.maxIdle=10  
  13. dbcp.maxWait=10000  
  14.   
  15. #SystemConstant  
  16. SystemConstent.dataStoreBasePath=/home/hp/servers/taokeeper-monitor/datastore/  
  17. SystemConstant.userNameOfSSH=hp  
  18. SystemConstant.passwordOfSSH=hacker  
  19. #Optional  
  20. # SystemConstant.configOfMsgCenter=  
  21.   
  22. #log  
  23. LOG_HOME=/home/hp/servers/taokeeper-monitor/logs/  
  24. LOG_LEVEL=DEBUG  


启动:

 

启动tomcat加载taokeeper项目:

 

[plain] view plaincopy在CODE上查看代码片派生到我的代码片
 
  1. ./startup.sh  

 

 

然后我们方位他 输入

 

[plain] view plaincopy在CODE上查看代码片派生到我的代码片
 
  1. 127.0.0.1:8080/taokeeper-monitor  


效果:

 

 

 

 

 

 

部署过程中遇到的问题:

在这里说一个关键的,其他问题自行解决:

1、目前用上面的方式发现在tomcat7是能正常部署的,而在tomcat8中无法用以上方式正常部署taokeeper,猜想与设置JAVA_OPTS参数有关系。

2、这里有同学提到MsgCenter null的 error,并且web页面在点击一些选项后没有反应的问题,然后i试试我的也确实有此问题,为此我继续降低tomcat版本,目前tomcat版本是 6.0.43. 然后其他配置不变,重启tomcat,然后进入taokeeper web页面,然后点击各个选项,试图添加本机的监控,发现都能有数据显示了,如上图所示。

 

http://blog.csdn.net/hackerwin7/article/details/43193705

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics