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.