Redis监控工具_RedisLive
Redis安装请看:
MacBook安装Redis
redis集群搭建_亲自操作
RedisLive安装
RedisLive是由python编写的并且开源的图形化监控工具,非常轻量级,核心服务部分只包含一个web服务和一个基于redis自带的info命令以及monitor命令的监控服务,界面上只有一个基于BootStrap的web界面,非常简洁明了。
#查看python版本
python -V#查看pip版本
pip --version
pip -V #查看pip版本#如果没有pip 安装pip
#下载
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
wget https://bootstrap.pypa.io/get-pip.py#安装pip
sudo python get-pip.py#安装相关依赖
pip install tornado
pip install redis
pip install python-dateutil#下载RedisLive源代码
git clone https://github.com/kumarnitin/RedisLive.git#进入目录
cd RedisLive/#修改配置文件名
mv redis-live.conf.example redis-live.conf#修改配置
cat redis-live.conf
{"RedisServers":[ {"server": "192.168.1.18","port" : 6379,"password": "beyond@2021"}],"DataStoreType" : "sqlite", #使用redis时 启动监控报错, 使用sqlite,启动监控过一会自动退出"RedisStatsServer":{"server" : "192.168.1.18","port" : 6379,"password": "beyond@2021"},"SqliteStatsStore" :{"path": "db/redislive.sqlite"}
}//启动监控,duration是心跳时间
./redis-monitor.py --duration=30 //启动web服务,默认监听8888端口
./redis-live.py
浏览器访问:
http://192.168.1.18:8888/index.html 监控界面
参考链接:
https://www.cnblogs.com/Leo_wl/p/5870006.html