序言
Redis服務的監控程序很多,之前寫了一個RedisLive.但是免費的且一直沒有維護的就容易產生問題.(主要是版本兼容性,因爲長時間沒人更新麼)
除了CUP的使用,內存的使用.連接的數量,其實我還想知道哪些是長時間保存在redis裏的.
這裏使用Centos7的環境來搭建,同時需要python的支持.centos7默認自帶python,所以不需要安裝python了.搭建過程中會提示一些版本問題,可以忽略.不影響最後的使用(這個比較坑啊,代碼很久都沒更新了.版本兼容不好.建議還是用命令來查看服務情況吧.如果有更好的開源可視化redis監控也請告知[email protected])
操作步驟
[root@localhost cuiyaonan2000]# yum install -y iptables-services
[root@localhost cuiyaonan2000]# wget https://bootstrap.pypa.io/get-pip.py
[root@localhost cuiyaonan2000]# python get-pip.py
[root@localhost cuiyaonan2000]# pip –V
#首先安裝python庫
[root@localhost cuiyaonan2000]# pip install redis-monitor
#初始化配置和數據庫
[root@localhost cuiyaonan2000]# redis-monitor init
#啓動 webserver
[root@localhost cuiyaonan2000]# redis-monitor start