redis.exceptions.ConnectionError: Error 111 connecting to master:6379. Connection refused.

在作单机redis demo的时候python

出现链接失败的问题,linux

先是把master --》 local,能够执行成功git

 

接下来改redis.confgithub

在执行也能够redis

 

其余链接参考:.net

linux 下 pip 安装教程blog

https://blog.csdn.net/u013372487/article/details/51726002/教程

redis 安装教程ip

https://blog.csdn.net/jameslvt/article/details/81150753get

python 导入redis模块

https://blog.csdn.net/jameslvt/articl

这里须要为Python安装Redis库,登录https://github.com/andymccurdy/redis-py 后点击Download ZIP下载安装包。

e/details/81156720