[root@localhost redis-5.0.5]# tar -zxvf redis-5.0.5.tar.gz
[root@localhost redis-5.0.5]# cd redis-5.0.5/
[root@localhost redis-5.0.5]# yum install gcc
[root@localhost redis-5.0.5]# make MALLOC=libc & make install
[root@localhost redis-5.0.5]# src/redis-server redis.conf
[root@localhost redis-5.0.5]# ps -ef | grep redis
[root@localhost redis-5.0.5]# vi redis.conf
1、bind ip
2、关闭保护模式
[root@localhost bin]# ./redis-cli -h 192.168.92.128 -p 6379