环境:阿里云centos7 安全组端口已开,防火墙已关闭,本地客户端可以读写。
1.redis.conf文件修改,bind 127.0.0.1改为 #bind 127.0.0.1;(不要注释 改成bind 0.0.0.0)
2.protected-mode yes 改为 protected-mode no;
3.daemonize no (这个是开启后台运行)
改完后重启服务。
环境:阿里云centos7 安全组端口已开,防火墙已关闭,本地客户端可以读写。
1.redis.conf文件修改,bind 127.0.0.1改为 #bind 127.0.0.1;(不要注释 改成bind 0.0.0.0)
2.protected-mode yes 改为 protected-mode no;
3.daemonize no (这个是开启后台运行)
改完后重启服务。