The method of installing Redis with Yum is detailed _redis

Source: Internet
Author: User
Tags hash memcached redis server port install redis

Introduced

Redis is a key-value storage system. Like memcached, it supports a relatively larger number of stored value types, including string (string), list (linked list), set (set), Zset (sorted set– ordered set), and hash (hash type). These data types support Push/pop, Add/remove and intersection-set and differential sets and richer operations, and these operations are atomic. On this basis, Redis supports a variety of different ways of ordering. As with memcached, data is cached in memory to ensure efficiency. The difference is that Redis periodically writes the updated data to the disk or writes the modification operation to the appended record file, and on this basis, it realizes the Master-slave (master-slave) synchronization.

This article mainly introduces the use of Yum to install Redis method, the following words do not say more, to see the detailed process.

First, execute the installation command

 
 

Second, the connection Redis

 
 

Note: If the following error is reported, it is not activated Redis

Could not connect to Redis at 127.0.0.1:6379:connection refused

Third, allow remote access Redis

To support remote access debugging, in addition to the need to open the server port number 6379, the comments in the configuration file need to be bind 127.0.0.1 dropped, but should be released in the production environment to avoid hacker attacks

Four, restart Redis

 
 

V. Test usage commands

 
 
 
 

Back: Hello World, proof of installation success

Summarize

The above is the entire content of this article changed, I hope the content of this article for everyone's study or work can bring some help, if there is doubt you can message exchange, thank you for the cloud Habitat Community support.

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.