安装yum install redis
启动systemctl start redis
停止systemctl stop redis
重启systemctl restart redis
开机自启systemctl enable redis.service
远程连接vim /etc/redis.conf
bind 0.0.0.0
# 密码 foobared, 自行修改
requirepass foobared
安装yum install redis
启动systemctl start redis
停止systemctl stop redis
重启systemctl restart redis
开机自启systemctl enable redis.service
远程连接vim /etc/redis.conf
bind 0.0.0.0
# 密码 foobared, 自行修改
requirepass foobared
转载于:https://www.cnblogs.com/gaoyongjian/p/10022898.html