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