1、安装yum -y install redis2、启动systemctl start redis3、加入自启动systemctl enable redis4、配置文件位置whereis redis.config5、允许远程连接#blind 127.0.0.1 blind后为仅允许连接的IP