远程连接redis配置;([WinError 10061] 由于目标计算机积极拒绝,无法连接。)

1.添加防火墙端口

https://www.cnblogs.com/sewen-H/p/13335508.html

2.修改配置文件

vim redis.conf

修改该配置为no

注释掉bind 127.0.0.1

 连接时使用服务器ip不要使用127.0.0.1

重启 systemctl restart redis.service

原文地址:https://www.cnblogs.com/sewen-H/p/13335643.html