In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Official download and installation documentation: http://www.lepus.cc/page/product
As a result of referring to the official documentation, there are a lot of frustrations in the installation of Sky Rabbit, so I have this note:
Environment CentOS 6.5 + xampp-linux-x64-1.8.2-5-installer.run + Lepus Database Enterprise Monitoring system 3.8Beta
Install xampp:
# wget http://cdn.lepus.cc/cdncache/software/xampp-linux-x64-1.8.2-5-installer.run
# chmod + x xampp-linux-x64-1.8.2-5-installer.run
#. / xampp-linux-x64-1.8.2-5-installer.run-all the way yes is fine
# ln-s / opt/lampp/xampp / sbin/xampp-create soft links to facilitate launching xampp
# ln-s / opt/lampp/bin/mysql / sbin/mysql-create a soft link to facilitate launching the mysql client
-
Install python 2.7-not officially provided
# yum install-y openssl openssl-devel-required to install python for mysql
# wget https://www.python.org/ftp/python/2.7.13/Python-2.7.13.tar.xz
# xz-d Python-2.7.13.tar.xz
# tar xvf Python-2.7.13.tar
# cd Python-2.7.13
#. / configure-enable-optimizations
# vim Modules/Setup.dist-the Modules folder is not available until after configure
Remove the # before the following lines:
# SSL=/usr/local/ssl
# _ ssl _ ssl.c\
#-DUSE_SSL-I $(SSL) / include-I $(SSL) / include/openssl\
#-L $(SSL) / lib-lssl-lcrypto
Change it to:
SSL=/usr/local/ssl
_ ssl _ ssl.c\
-DUSE_SSL-I $(SSL) / include-I $(SSL) / include/openssl\
-L$ (SSL) / lib-lssl-lcrypto
Save exit.
-
Install the python for mysql module
# wget http://cdn.lepus.cc/cdncache/software/MySQLdb-python.zip
# unzip MySQLdb-python.zip
# cd MySQLdb1-master-- the directory extracted by MySQLdb-python.zip
# find /-name mysql_config-which mysql_config is used in the official guidance. It may be installed differently. I can't find this file.
/ opt/lampp/bin/mysql_config
# vim site.cfg add a line:
Mysql_config = / usr/local/mysql/bin/mysql_config
# python setup.py build-mysql_config file not found
EnvironmentError: / usr/local/mysql/bin/mysql_config not found
# ln-s / opt/lampp/bin/mysql_config / usr/local/mysql/bin/mysql_config-create a link
# python setup.py install
Finished processing dependencies for MySQL-python==1.2.4-python from mysql installed successfully
-
Install Sky Rabbit Lepus Database Enterprise Monitoring system 3.8 Beta.zip
-- Sky Rabbit needs to be downloaded from the windows and then uploaded to the linux server.
# unzip Lepus Database Enterprise Monitoring system 3.8 Beta.zip
# mv Lepus Database Enterprise Monitoring system 3.8 Beta lepus3.8
Set up the lepus database:
# msyql
Mysql > create database lepus default character set utf8
Query OK, 1 row affected (0.01sec)
Mysql > grant select,insert,update,delete,create on lepus.* to 'lepus'@'localhost' identified by' 123456'
Query OK, 0 rows affected (0.00 sec)
Mysql > flush privileges
Mysql > exit
# mysql lepus
< sql/lepus_table.sql --导入数据表 #mysql -uroot lepus < sql/lepus_data.sql --导入数据 ------------------------------------------------------------------------------------------------------------------------- ------------------------------ 安装Lepus程序: #cd python --Lepus3.8程序包内的目录 # chmod +x install.sh --授权执行 # ./install.sh --执行 [root@slave 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. 修改 Lepus 配置文件 # cd /usr/local/lepus/ # vim etc/config.ini ###监控机MySQL数据库连接地址### [monitor_server] host="127.0.0.1" port=3306 user=" lepus " --输入天兔数据库的用户名 passwd="xxxxxx" --输入天兔数据库的用户lepus的密码 dbname="lepus" # lepus start --测试是否可以启动天兔 lepus server start fail! #cat logs/lepus.log ImportError: libmysqlclient.so.18: cannot open shared object file: No such file or directory --缺少文件libmysqlclient.so.18 # yum install -y libmysqlclient.so.18 # lepus start --测试是否可以启动天兔 lepus server start fail! # cat /usr/local/lepus/logs/lepus.log ImportError: libcrypto.so.1.0.0: cannot open shared object file: No such file or directory --缺少文件 libcrypto.so.1.0.0 #find / -name libcrypto.so.1.0.0 /opt/lampp/lib/libcrypto.so.1.0.0 # ln -s /opt/lampp/lib/libcrypto.so.1.0.0 /usr/lib64 ---建立软链接 # ln -s /opt/lampp/lib/libcrypto.so.1.0.0 /usr/lib ---建立软链接 #lepus start --测试是否可以启动天兔 lepus server start success! --终于启动了 ------------------------------------------------------------------------------------------------------------------------- ------------------------------ 安装WEB管理台 #cp -rf /root/lepus3.8/php/* /opt/lampp/htdocs/ --复制天兔安装包里的PHP文件夹内的文件到 apache主页目录 # vim /opt/lampp/htdocs/application/config/database.php --修改PHP的database.php文件 $db['default']['username'] = 'lepus'; --把用户名加进去 $db['default']['password'] = '123456'; --把用户密码加进去 登录进行添加主机和监控 通过浏览器输入IP地址或域名打开监控界面,即可登录系统。.默认管理员账号密码admin/Lepusadmin登录后请修改管理员密码,增加普通账号。 ------------------------------------------------------------------------------------------------------------------------- ------------------------------ 添加被监控端 在被控端mysql添加一个mysql帐号,然后在登录天兔系统,在天兔里添加: 被控端: mysql>Grant all on *. * to 'lepus'@'%' identified by' 123456'
Query OK, 0 rows affected, 1 warning (0.25 sec)
Sky Rabbit:
Other functions need to be figured out by yourself, and there are no official documents.
The full text is complete
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.