Redis::CannotConnectError (Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED)) code example
Example 1: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
sudo service redis-server status
Example 2: Error: Redis connection to 127.0.0.1:6379 failed - connect ECONNREFUSED 127.0.0.1:6379
sudo apt-get install redis-server