我的问题解决了!
我的解决方案:
redis配置文件修改:
第一步:#bind 127.0.0.1 --注释绑定ip
第二部:将protected-mode 设置为:no
然后Linux(Centos7+)部分:
systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动
如果是用的某商服务器,将redis端口设置为开放,然后宝塔防火墙也增加redis端口即可。
然后基本上可以连接成功了,然后宝塔重新加载文件,然后停止,然后重启,基本上ok,也会看到redis是正常启动标志。
|