CentOS7 + Redis Live installation Configuration

Source: Internet
Author: User

CentOS7 + Redis Live installation Configuration

Redis Live is a monitoring tool that monitors redis instances, analyzes query statements, and has a web interface. It is written in python.

Code: https://github.com/nkrode/RedisLive

This document records the installation of Redis-Live under CentOS 7.

Step 1: Prepare the environment

Use the Root account to log on to CentOS and connect to the Internet.

Because Redis-Live is written in Python, the Python environment must be more than 2.7 checked first. CentOS7 is 2.7.5 by default, So skip this step.

Next, check whether yum runs properly:

The test information indicates that yum is normal, which is also available in CentOS by default.

Step 2: Install Required Software

Install pip: easy_install pip

Install three dependency components of RedisLive

Pip install tornado

Pip install redis

Pip install python-dateutil

Step 3: Install Redis-Live.

First, go to the cd/usr/local/directory.

Then download the Redis-Live source code:

Decompress the package and change the directory name to RedisLive:

Go to the src directory and find and edit the redis-live.conf settings parameters:

RedisServers node: this is the list of hosts to be monitored. You can add multiple

Enter the RedisStatsServer node: This is where to put the monitoring data. Generally, it is a machine running RedisLive and a Redis instance that collects the data to the local temporary storage.

Save and close the settings.

Enable monitoring Script:./redis-monitor.py -- duration 120 &

Webserver:./redis-live.py &

Note: first, go to the directory.

Enter the following address in the browser to view RedisLive: http: // localhost: 8888/index.html

You must wait for the data collection to complete before it can be displayed:

The number of keys can be checked with the server.

Step 4: Pay attention to monitoring

(1) If the address cannot be accessed after being transferred to the browser, disable the firewall or open port 8888.

(2) monitoring will affect Redis performance after it is enabled. Therefore, it is recommended that you perform regular monitoring instead of real-time monitoring. (

(3) scheduled run nohup./redis-monitor.py -- duration = seconds &

Note: during sampling, set the sampling seconds reasonably. We recommend that you do not run the sampling script too frequently.

You may also like the following articles about Redis. For details, refer:

Install and test Redis in Ubuntu 14.04

Basic configuration of Redis master-slave Replication

Redis cluster details

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

Learning notes on Redis installation and deployment

Redis. conf

This article permanently updates the link address:

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.