• 部署安装redislive


    安装部署redislive
    环境:
    OS:Centos 7
    Python:2.7.5

    1.下载
    下载地址为:
    https://github.com/kumarnitin/
    下载文件文件为:RedisLive-master.zip

    2.解压
    [root@localhost soft]# unzip RedisLive-master.zip
    查看安装依赖
    [root@localhost RedisLive-master]# more /soft/RedisLive-master/requirements.txt
    argparse==1.2.1
    python-dateutil==1.5
    redis
    tornado==2.1.1


    [root@localhost RedisLive-master]# yum install pip
    [root@localhost RedisLive-master]# cd /soft/RedisLive-master
    [root@localhost RedisLive-master]# pip install -r requirements.txt -i http://pypi.douban.com/simple/ --trusted-host pypi.douban.com

    3.配置
    [root@localhost src]# cd /soft/RedisLive-master/src
    [root@localhost src]# cp redis-live.conf.example redis-live.conf

    修改配置文件

    [root@localhost src]# more redis-live.conf
    {
            "RedisServers":
            [ 
                    {
                            "server": "154.17.59.99",
                            "port" : 6379
                    },
    
                    {
                            "server": "192.68.1.50",
                            "port" : 6379,
                            "password" : "123456"
                    }
            ],
    
            "DataStoreType" : "redis",
    
            "RedisStatsServer":
            {
                    "server" : "192.168.1.85",
                    "port" : 6379
                    "password" : "1234567"
            },
    
            "SqliteStatsStore" :
            {
                    "path":  "to your sql lite file"
            }
    }

     

    4.启动redis-monitor.py脚本,并将duration参数设置为 120 秒。
    duration参数指定了监控脚本的运行持续时间,例如设置为 120 秒,即经过 120 秒后,监控脚本会自动退出,
    并在终端打印 shutting down… 的提示

    [root@localhost src]# cd /soft/RedisLive-master/src
    [root@localhost src]#./redis-monitor.py --duration=1200


    5.接下来启动 Web 服务器:
    [root@localhost soft]# cd /soft/RedisLive-master/src
    [root@localhost src]# ./redis-live.py

    6.浏览器登陆
    http://192.168.1.85:8888/index.html

  • 相关阅读:
    我开博客了,啦啦啦.
    cf593div2
    Comet OJ
    cf591div2abc
    cfround586ac
    cf589div2
    cf573div2
    Codeforces Round #569 (Div. 2)
    uva11729 水题
    luogu1984 [SDOI2008] 烧水问题
  • 原文地址:https://www.cnblogs.com/hxlasky/p/15651014.html
Copyright © 2020-2023  润新知