jamfer
V2EX  ›  问与答

大佬帮忙看看,阿里云 centos 6.8 配置 redis 始终报错...

  •  
  •   jamfer · Nov 10, 2017 · 1628 views
    This topic created in 3200 days ago, the information mentioned may be changed or developed.
    连接阿里云的云数据库 redis 报错如下:
    Warning: Redis::connect(): connect() failed: Connection timed out
    Fatal error: Uncaught exception 'RedisException' with message 'Redis server went away'

    我确定防火墙里打开了 6379 端口
    也安装了 phpredis (安装过程没有报错)
    phpinfo 里也可以看到 redis 版本号



    请问怎么解决这个问题?
    2 replies    2017-11-10 10:29:20 +08:00
    b821025551b
        1
    b821025551b  
       Nov 10, 2017
    timed out 一般是地址不对,看你配的是公网还是内网,内网的话安全组什么样(内网互通)
    canbingzt
        2
    canbingzt  
       Nov 10, 2017
    安全组端口放开了没
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2612 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 01:15 · PVG 09:15 · LAX 18:15 · JFK 21:15
    ♥ Do have faith in what you're doing.