问题描述:
wsasend: An existing connection was forcibly closed by the remote host.
翻译:远程主机强制关闭现有连接。
问题分析:
Redis默认只能localhost登录,远程登录需要修改redis.config配置
解决方法:
(修改config文件)
- 注释“绑定本机ip”

- 禁用保护模式

- 开启Redis守护进程(注意:Windows运行Redis不需要,看说明)
Windows跟Linux上运行Redis配置上的区别
Windows不需要设置守护进程
Linux需要设置守护进程