lepus安装

扫码查看
https://www.apachefriends.org/download.html
wget https://www.apachefriends.org/xampp-files/5.6.32/xampp-linux-x64-5.6.32-0-installer.run
chmod +x xampp-linux-x64-5.6.32-0-installer.run
./xampp-linux-x64-5.6.32-0-installer.run
cd /opt/lnmap
./lampp start

http://192.168.10.4/dashboard/

https://github.com/ruzuojun/lepus
http://www.dbarun.com/docs/lepus/guide/

yum install gcc gcc-c++ python-devel python-setuptools python-pip -y
wget https://github.com/farcepest/MySQLdb1/archive/master.zip
unzip master.zip
cd MySQLdb1-master
vi site.cfg
...
mysql_config = /opt/lampp/bin/mysql_config

python setup.py build
python setup.py install

创建数据库
mysql -S /opt/lampp/var/mysql/mysql.sock
create database lepus default character set utf8;
grant all privileges on lepus.* to lepus@"localhost" identified by '123456';
grant all privileges on lepus.* to lepus@"%" identified by '123456';
flush privileges;

cd /usr/local
git clone https://github.com/ruzuojun/lepus.git
导入数据
mysql -S /opt/lampp/var/mysql/mysql.sock lepus mysql -S /opt/lampp/var/mysql/mysql.sock lepus

cd /usr/local/lepus
测试驱动
python test_driver_mysql.py 


pip install pymongo
python test_driver_mongodb.py

wget https://pypi.python.org/packages/source/r/redis/redis-2.10.3.tar.gz
tar xf redis-2.10.3.tar.gz
cd redis-2.10.3
python setup.py install
python test_driver_redis.py

cd /usr/local/lepus
chmod +x lepus*
ln -s /usr/local/lepus/lepus /usr/local/sbin/lepus
ln -s /usr/local/lepus/lepus_monitor /usr/local/sbin/lepus_mointor

root@eshadoop lepus]# cat etc/config.ini 
[monitor_server]
host="localhost"
port=3306
user="lepus"
passwd="123456"
dbname="lepus"

启动
lepus start

日志
cat logs/lepus.log
错误
ln -s /opt/lampp/var/mysql/mysql.sock /var/lib/mysql/mysql.sock

WEB:
/opt/lampp/etc/httpd.conf文件,将下面的denied修改为granted


    AllowOverride none
    Require all granted


取消这一行的注释
Include etc/extra/httpd-vhosts.conf

    ServerAdmin test.com
    DocumentRoot "/usr/local/lepus/web"
    ServerName 192.168.10.4
    ServerAlias 192.168.10.4
    ErrorLog "logs/demo.lepus.cc-error_log"
    CustomLog "logs/demo.lepus.cc-access_log" common





 vi web/application/config/database.php 
$db['default']['hostname'] = 'localhost';
$db['default']['username'] = 'lepus';
$db['default']['password'] = '123456';
$db['default']['database'] = lepus;
$db['default']['dbdriver'] = 'mysql';




http://192.168.10.4/index.php/login?return_url=http://192.168.10.4/index.php
admin/Lepusadmin




mysq添加
mysql -S /opt/lampp/var/mysql/mysql.sock
grant select,process,super on *.* to 'lepus_monitor'@'localhost' identified by '123456';
grant select,process,super on *.* to 'lepus_monitor'@'%' identified by '123456';
flush privileges;
exit;
配置中心->MySQL
11-19 20:28
查看更多