下载redis
wget http://download.redis.io/releases/redis-5.0.5.tar.gz
解压tar.gz文件
tar -zxvf redis-5.0.5.tar.gz
进入到redis-5.0.5 编译安装
make PREFIX=/usr/local/redis install
复制redis.conf到/usr/local/redis
修改redis.conf
daemonize 改为yes
bind 127.0.0.1 改为#bind 127.0.0.1外网访问
stop-writes-on-bgsave-error yes 改为no
logfile '' 设置指定log文件
启动redis
cd /usr/local/redis/bin
./redis-server ../redis.conf
停止redis-登入redis-密码认证(设置了密码的话)-
./redis-cli #登录redis
SHUTDOWN NOSAVE