Redis+sentinel Installation and Configuration

Source: Internet
Author: User

Redis Installation and Configuration

Environmental information:

master:10.10.56.3 Centos6.8
slave:10.10.56.4 Centos6.8

Start the Redis service installation

# Download and install
$ wget http://download.redis.io/releases/redis-3.0.0.tar.gz

# Unzip
$ tar xzf redis-3.0.0.tar.gz

# Switch to Directory
$ CD redis-3.0.0

# compilation
$ make

Copying files
The CP redis-benchmark REDIS-CLI redis-server redis-sentinel/usr/bin/#这个倒是很有用 so that it does not have to be executed when added.

Turn on the Redis port and modify the firewall configuration file
Vi/etc/sysconfig/iptables
Join Port Configuration
-A Input-p TCP--dport 6379-j ACCEPT
Reload Rule
Service Iptables Restart

, configure Redis.config file
1, master node master configuration file redis_master.conf:

Daemonize Yes
Pidfile./run/redis_slaver1_6315.pid
Port 6379

Logfile "./run/logs/log_master_6379.log"

Redis+sentinel Installation and Configuration

Related Article

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.