图片做网站连接,深圳做网站需要多少费用,重庆专业网站建设,软文营销的成功案例之前在生产环境部署了Redis集群#xff0c;一直苦于没有工具监控#xff0c;最近找了下网上推荐redmon和Redislive的比较多#xff0c;查看了两个项目的github,都几年没有更新#xff0c;这两个项目应该没有人在维护了#xff0c;如果哪位有更好的替代方案麻烦告知#x…之前在生产环境部署了Redis集群一直苦于没有工具监控最近找了下网上推荐redmon和Redislive的比较多查看了两个项目的github,都几年没有更新这两个项目应该没有人在维护了如果哪位有更好的替代方案麻烦告知
仅将自己的部署方案贴出来以供自己翻查
具体步骤参考自redislive 的github安装文档-----------------http://www.nkrode.com/article/real-time-dashboard-for-redis
环境
CentOS7.2-1511 minimal
python 2.7.5
安装依赖组件
1、yum install epel-release yum install python-devel python-setuptools python-pip pip install redis pip install dateutil(内网通过挂载本地yum源安装的)
pip install tornado(内网通过下载tornado-1.2.1.tar.gz python setup.py install)
如果是python2.7以下还需要安装pip install argparse 官方文档说明 2、安装过程中如有报错安装相应的依赖即可内网可通过外网虚机 yum install --downloadonly --downloaddir 方式下载安装 3、下载github源码 git clone https://github.com/nkrode/RedisLive.git 或者直接下载解压
4、配置文件更改 #cd nkrode-RedisLive-6debcb6 #cd src mv redis-live.conf.example redis-live.conf #vi redis-live.conf
注意打开的方式部分编辑工具会进入非法字符
原始的配置文件如下 [plain] view plaincopy { RedisServers: [ { server: 154.17.59.99, port : 6379 }, { server: localhost, port : 6380, password : some-password } ], DataStoreType : redis, RedisStatsServer: { server : ec2-184-72-166-144.compute-1.amazonaws.com, port : 6385 }, SqliteStatsStore : { path: to your sql lite file } } 部分配置参数说明 RedisStatsServer: 如果存储类型选择了reids就需要配置此项即另外拿出一个redis来存储其他redis的状态信息也就是上面说的元数据。
SqliteStatisStore: 如果存储类型选择了sqlite就配置此项指定一个路径保存sqlite文件。 5、服务启动
./redis-monitor.py --duration120
./redis-live.py
http://192.168.1.101:8888/index.html 以上两个进程都是默认前台运行可以后台去执行
nohup ./redis-monitor.py --duration36000 --quiet nohup ./redis-live.py --log_file_prefix/home/user/log/redis_live --loggingwarning 6、redis-client
RedisDesktopManager下载地址 https://redisdesktop.com/ 有windows Linux mac版本下载建立连接即可。
http://bbs.redis.cn/forum.php?modviewthreadtid840