Chinaunix首页 | 论坛 | 博客
  • 博客访问: 5088852
  • 博文数量: 1609
  • 博客积分: 18684
  • 博客等级: 上将
  • 技术积分: 14930
  • 用 户 组: 普通用户
  • 注册时间: 2010-06-02 10:28
文章分类

全部博文(1609)

文章存档

2020年(26)

2019年(27)

2018年(44)

2017年(50)

2016年(47)

2015年(15)

2014年(21)

2013年(43)

2012年(143)

2011年(229)

2010年(263)

2009年(384)

2008年(246)

2007年(30)

2006年(38)

2005年(2)

2004年(1)

分类: 系统运维

2019-04-30 11:36:52

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
阅读(366) | 评论(0) | 转发(0) |
0

上一篇:open-falcon安装配置

下一篇:go mod使用

给主人留下些什么吧!~~