redis 本地连接可以 远程连接不上问题


1.所连主机防火墙关一下.

  1. 1:查看防火状态
  2. systemctl status firewalld
  3. service  status iptables 
  4. 2:暂时关闭防火墙
  5. systemctl stop firewalld
  6. service  stop iptables
  7. 3:永久关闭防火墙
  8. systemctl disable firewalld
  9. chkconfig iptables off

2.能不能ping通那主机

3.bind 127.0.0.1改为 #bind 127.0.0.1

4.protected-mode yes 改为 protected-mode no(redis3.2版本以后)

5.加入 daemonize no(这个是是否在后台启动不占用一个主程窗口)


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM