问题时这样的:我把我的redis配置文件中绑定的地址为Centos7的IP地址,启动的时候就会报:Could not connect to Redis at 127.0.0.1:6379: Connection refused,如下图

   Redisi启动时会报:Could not connect to Redis at 127.0.0.1:6379: Connection refused

通过上图可以看出,redis是默认访问本机127.0.0.1而不是你绑定的地址,并且后台的redis进程也启动了

 

发现了问题的所在,通过redis-cli -h IP地址 -P 端口  -a 密码 可以连过去的,见下图

  Redisi启动时会报:Could not connect to Redis at 127.0.0.1:6379: Connection refused

 

如上图所示,连接redis数据库成功

相关文章:

  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2021-06-07
  • 2021-08-10
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-09-14
  • 2022-12-23
  • 2021-11-12
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案