安装 yum install redis
yum install redis
启动 systemctl start redis 停止 systemctl stop redis 重启 systemctl restart redis
systemctl start redis
systemctl stop redis
systemctl restart redis
开机自启 systemctl enable redis.service
systemctl enable redis.service
远程连接 vim /etc/redis.conf
vim /etc/redis.conf
bind 0.0.0.0 # 密码 foobared, 自行修改 requirepass foobared