这个错误多半是由于安装Redis后没有启动它
redis-server
在命令行输入如上指令后项目便可以正确运行了
参考网址:https://stackoverflow.com/questions/8754304/redis-connection-to-127-0-0-16379-failed-connect-econnrefused