yum install -y gcc
wget http://download.redis.io/releases/redis-5.0.3.tar.gz
tar -zxvf redis-5.0.3.tar.gz
cd redis-5.0.3
make
make install PREFIX=/home/redis
cp /xx/redis-5.0.3/redis.conf /home/redis/bin/
cd /home/redis/bin/
vim redis.conf
./redis-server redis.conf
开启远程登录
绑定本机地址:bind 127.0.0.1
开启保护模式:protected-mode yes
改成
绑定本机地址:bind 0.0.0.0
开启保护模式:protected-mode no
requirepass xxx 记得加上这句设置密码
将daemonize的参数值修改为yes 后台启动