Lepus数据库企业监控系统3.7

1. LAMP安装
2. Python2.7.9安装 及 Python Mysql驱动安装
 
#cd /home/xxx
#wget http://python.org/ftp/python/2.7.9/Python-2.7.9.tgz #./configure 
(如果no acceptable C compiler found in $PATH 则安装GCC组件yum install gcc)
#make & make install

# python
# wget http://www.mtop.cc/software/MySQLdb-python.zip 
# unzip MySQLdb-python.zip 
# cd MySQLdb1-master/ 
# which mysql_config 
/usr/local/mysql/bin/mysql_config 
如果找不到 mysql_config (msyql的开发包,安装包的mysql中没有此文件) 执行sudo apt-get install libmysqlclient-dev # vim site.cfg 修改如下:  mysql_config = /usr/local/mysql/bin/mysql_config  # python setup.py build  出现 urlopen error unknown url type: https 错误提示表示没有正确安装openssl  {
sudoapt-get installopenssl
sudoapt-get installlibssl-dev
或者
CentOS系统下,安装openssl,openssl-devel
#yum install openssl
#yum install openssl-devel
重新编译python 进入Python的安装目录
#./configure
#make all
#make install
#make clean
#make distclean
} # python setup.py install  2. Lepus安装 及启动 # unzip lepus_vx.x.x.zip 2).在监控机创建监控数据库,并授权。 mysql> create database lepus default character set utf8; mysql> grant select,insert,update,delete,create on lepus.* to 'lepus_user'@'localhost' identified by 'xxxxxx'; mysql> flush privileges; 导入SQL文件夹里的SQL文件(表结构和数据文件) # mysql -uroot –p  lepus < sql/lepus_table.sql # mysql -uroot –p  lepus < sql/lepus_data.sql   4)安装Lpeus程序 进入到软件包的python文件夹 # cd python/ 授予install.sh可执行权限 # chmod +x install.sh 执行安装 # ./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.   5) 修改配置文件 进入到安装目录,默认为/usr/local/lepus # cd /usr/local/lepus/ # vim etc/config.ini ###监控机MySQL数据库连接地址### [monitor_server] host="127.0.0.1" port=3306 user=" lepus_user " passwd="xxxxxx" dbname="lepus" 启动监控系统 执行以下命令启动系统采集进程 # lepus start  执行以下命令关闭系统采集进程 # lepus stop  执行以下命令监控系统是否正常运行 # lepus status lepus server is running...

你可能感兴趣的:(Lepus数据库企业监控系统3.7)