284354749 发表于 2018-11-3 11:03:55

centos下redis无法连接

  主要是两方面的原因
  (1)redis.conf中bind的ip,默认是127.0.0.1,只能本地连接(体现为Could not connect to Redis at ...:Connection refused),添加上服务器的内网ip或者外网ip,重启就可以了,
  (2)如果开启了防火墙了,也会造成redis无法连接(体现为Could not connect to Redis at ...: Connection timed out),此时可以关闭防火墙或者开放redis的端口解决

页: [1]
查看完整版本: centos下redis无法连接