Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) (Redis::CannotConnectError) code example
Example: Error connecting to Redis on localhost:6379 (Errno::ECONNREFUSED) (Redis::CannotConnectError)
On Mac OXS:
Step 1
- brew install redis # Install redis (if not installed)
Step 2
- redis-server # Start the redis server
or
Step 2
redis-server --daemonize yes # to start redis in the background
# By default Redis does not run as a daemon.
# Use 'yes' to use it