Redis Connection times Error: Could not connect to Redis at 127.0.0.1:6379:connection refused

Source: Internet
Author: User
Tags redis
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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.