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

这个问题是因为没安装Redis服务器造成的。 
解决办法:

sudo apt-get install redis-server

参考:

https://blog.csdn.net/qq_33528613/article/details/78029525

原文地址:https://www.cnblogs.com/sea-stream/p/10392511.html