Redis-monitor installation and performance monitoring configuration --Redis

After the continuous mining pit and fill the hole, finally redis-monitor to get. The method is suitable for a specific environment, different pit environment may be different, he did not talk much.

First, the environment

linux CentOS 7.5

python 2.7

Second, the preparation phase

Turn off the firewall

// install iptables-services

yum install -y iptables-services

// turn off the firewall

service iptables stop

Redirecting to /bin/systemctl stop  iptables.service

// Check the firewall status

service iptables status

Redirecting to /bin/systemctl status  iptables.service

●iptables.service - IPv4 firewall with iptables

   Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)

   Active: inactive (dead)

Pip install command

wget https://bootstrap.pypa.io/get-pip.py

python get-pip.py

pip -V

Third, the installation

First install python library

pip install redis-monitor

Initial configuration and database

redis-monitor init

Start webserver

redis-monitor start

  1. Open the monitoring page

Enter Redis-monitor services in the PC browser ip: 9527

Service Configuration

To achieve the monitoring of the Redis also you need to configure redis.conf let redis let go of some of the permission.

Turn off the firewall service redis

Step Reference preparation phase

Modify redis.conf

protected-mode no

bind comment out any default ip can access

daemonize no

Start redis service

No error can be.

Configuration Monitoring page

Return PC browser is already open, enter the ip and port click Add / Update

Then click on the list under the new ip

 

Guess you like

Origin blog.csdn.net/datuzijean/article/details/87188713