压缩包方式 安装redis
$ cd /usr/local
$ mkdir soft
$ cd soft
$ wget http://download.redis.io/releases/redis-4.0.6.tar.gz
$ tar xzf redis-4.0.6.tar.gz
$ cd redis-4.0.6
$ make
mkdir /usr/local/redis
cp redis-server /usr/local/redis
cp redis-benchmark /usr/local/redis
cp redis-check-rdb /usr/local/redis
cp redis-sentinel /usr/local/redis
cp redis-cli /usr/local/redis
cp redis.conf /usr/local/redis
----------------------------------------------------------------------------------------------
远程访问6379节点(后期做为主节点使用):
redis.conf 修改 requirepass 12345678 注释掉bind 127.0.0.1
./redis-server redis.conf redis启动
./redis-cli -h 192.168.42.111 -p 6379 -a 12345678 // redis.conf
不恋尘世浮华,不写红尘纷扰