1.打开redis目录中的 redis.conf文件
将 bind:127.0.0.1注释掉,然后将protected-mode 改成no
改成这样!
如果还是连不上,应该是防火墙的问题,
sudo systemctl status firewalld 查看防火墙状态
sudo systemctl stop firewalld 停掉防火墙(临时)
sudo systemctl disable firewalld 永久停掉防火墙
应该就可以了!开心嘛!嘻嘻嘻