doujianjian2060 2016-07-17 14:36
浏览 292

phpredis无法连接到127.0.0.1:6379

Below is error info:

Fatal error: Uncaught exception 'RedisException' with message 'Can't connect to 127.0.0.1:6379' in /var/www/html/index.php:3 Stack trace:
#0 /var/www/html/index.php(3): Redis->connect('127.0.0.1', 6379) #1 {main} thrown in /var/www/html/index.php on line 3

But actually when using redis-cli to connect 127.0.0.1:6379, it still works. phpredis was cloned form GitHub with master branches, local phpversion is 5.4.

Thanks!

  • 写回答

1条回答

  • duananyantan04633 2016-07-17 14:56
    关注

    finally I've found the problem :

    setenforce 0

    I don't know why , but it works!

    may helpful to u guys...

    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作