一、安装环境

安装编译环境、ruby运行环境、git代码

yum install gcc-c++

yum -y install ruby-devel
yum install ruby    
yum install rubygems  git

二、拉取redis-stat文件


git clone https://github.com/junegunn/redis-stat.git  


三、安装redis-stat

gem install redis-stat  

四、运行redis-stat

cd /root/redis-stat/bin

redis-stat

Redis监控之redis-stat安装与详解

五、以上是监控本机redis。通过web监控多台redis。命令如下

./redis-stat 192.168.1.2:6379 192.168.1.9:6379 --server=63790 10 --daemon  

注:redis-stat通6379端口来监控各服务器,但web界面的端口为63790  ,10为10秒一次。。。 --daemon后台运行

通过访问192.168.1.9:63790  (redis-stat部在这台服务器上)

Redis监控之redis-stat安装与详解


相关文章:

  • 2021-12-28
  • 2021-05-18
  • 2021-11-19
  • 2022-12-23
  • 2021-05-19
  • 2021-08-05
  • 2021-03-31
猜你喜欢
  • 2021-06-12
  • 2021-12-16
  • 2021-07-25
  • 2021-11-19
  • 2022-02-07
  • 2021-06-04
相关资源
相似解决方案