1.防火墙关闭
systemctl stop firewalld
2.修改redis.conf文件
bind 127.0.0.1注释掉
protected-mode yes 改为 protected-mode no
3.重启redis
src/redis-server redis.conf (一定要加redis.conf 不然修改的配置不会生效!!!)
systemctl stop firewalld
bind 127.0.0.1注释掉
protected-mode yes 改为 protected-mode no
src/redis-server redis.conf (一定要加redis.conf 不然修改的配置不会生效!!!)