1.使用下面的命令安装redis
yum install epel-release
yum update
yum install redis
systemctl start redis
systemctl enable redis
yum install epel-release
yum update
yum install redis
systemctl start redis
systemctl enable redis
2.修改配置文件
修改 /etc/redis.conf
注释掉61行
80行改为no
protected-mode no
128行改为yes
daemonize yes
注释掉61行
80行改为no
protected-mode no
128行改为yes
daemonize yes