设为首页 加入收藏

TOP

MySQL之数据库监控(Lepus)(二)
2019-03-05 16:09:45 】 浏览:257
Tags:MySQL 数据库 监控 Lepus
;default character set utf8; mysql> grant select,insert,update,delete,create on lepus.* to 'lepus'@'localhost' identified by 'lepus'; mysql> flush privileges; mysql> use lepus mysql> source /root/lepus/sql/lepus_table.sql mysql> source /root/lepus/sql/lepus_data.sql [root@wallet04 ~]# cd lepus/python [root@wallet04 python]# chmod +x install.sh [root@wallet04 python]# ./install.sh [note] lepus will be install on basedir: /usr/local/lepus [note] /usr/local/lepus directory does not exist,will be created. [note] /usr/local/lepus directory created success. [note] wait copy files....... [note] change script permission. [note] create links. [note] install complete. [root@wallet04 ~]# cd /usr/local/lepus [root@wallet04 lepus]# vim etc/config.ini ###监控机MySQL数据库连接地址### [monitor_server] host="localhost" port=3306 user="lepus" passwd="lepus" dbname="lepus" [root@wallet04 ~]# cd lepus [root@wallet04 lepus]# cp -rf php/* /usr/local/apache/htdocs [root@wallet04 ~]# cd /usr/local/apache/htdocs/application/config $db['default']['hostname'] = 'localhost'; $db['default']['port']     = '3306'; $db['default']['username'] = 'lepus'; $db['default']['password'] = 'lepus'; $db['default']['database'] = 'lepus'; $db['default']['dbdriver'] = 'mysql'; $db['default']['dbprefix'] = ''; $db['default']['pconnect'] = TRUE; $db['default']['db_debug'] = TRUE; $db['default']['cache_on'] = FALSE; $db['default']['cachedir'] = ''; $db['default']['char_set'] = 'utf8'; $db['default']['dbcollat'] = 'utf8_general_ci'; $db['default']['swap_pre'] = ''; $db['default']['autoinit'] = TRUE; $db['default']['stricton'] = FALSE; [root@wallet04 ~]# cd /usr/local/lepus [root@wallet04 lepus]# lepus start [root@wallet04 lepus]# lepus status lepus server is running... [root@wallet04 lepus]# tail -f logs/lepus.log 2018-12-20 14:04:49 [INFO] check oracle controller finished. 2018-12-20 14:04:53 [INFO] check mongodb controller started. 2018-12-20 14:04:53 [WARNING] check mongodb: not found any servers 2018-12-20 14:04:53 [INFO] check mongodb controller finished. 2018-12-20 14:04:55 [INFO] check redis controller st
首页 上一页 1 2 3 4 下一页 尾页 2/4/4
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇MySQL之数据库工具 下一篇MySQL基础解析

最新文章

热门文章

Hot 文章

Python

C 语言

C++基础

大数据基础

linux编程基础

C/C++面试题目