Could not connect to Redis at 127.0.0.1:6379:connection refused
[Root@rongle bin]# redis-cli
Could not connect to Redis at 127.0.0.1:6379:connection refused
[Root@rongle/]# Red is-server/etc/redis.conf
[root@rongle/]# redis-cli
redis 127.0.0.1:6379>
When the Redis extension attempt to connect to Redis is installed, the client cannot open because the server needs to be turned on first, which requires configuration--
1. Locate redis.conf and modify Daemonize No to daemonize Yes so you can run the background by default
2. Turn on the client to ensure server-side startup
[Root@rongle/]# redis-server/etc/redis.conf
3. Start the client is unsuccessful to exit and proceed to the next step
Now you can access it normally.
[Root@rongle/]# redis-server/etc/redis.conf
[root@rongle/]# redis-cli
redis 127.0.0.1:6379>
Reference Link: http://www.cnblogs.com/zjfjava/p/6881375.html