Linux installation Redis

Source: Internet
Author: User
Tags memcached install redis

has been used beforeMemcached, but Memcached has a deadly thing is to lose all the data after the power outage, so turn to Redis. Redis is one of the most popular NoSQL systems today, and it is a key-value storage system. Similar to memcached, but largely compensates for the lack of memcached, which supports storing more value types, including string, list, set, Zset, and hash. These data types support Push/pop, Add/remove, and intersection sets and differences, and richer operations. Based on this, Redis supports sorting in a variety of different ways. Redis data is cached in the computer's memory and then periodically asynchronously saved to disk (this is known as "semi-persistent mode"), and each data change can be written to a append only file (AOF) (this is called "Full persistence mode").

There are two ways to persist Redis, the first of which isfilesnapshottingSnapshotThe default redis is to persist data to disk in the form of a snapshot (a binary file, Dump.rdb, this file name can be specified), but the snapshot also hasThe downside is power outages or anomalies.When you die, append-only can be so that all the data is not lost, But the performance of Redis will be worse, dump.rdb occupies a large amount of hard disk space is several times. So this depends on the individual needs to decide in that way!

It is very easy to install Redis under Linux, as described in the following steps (official website):

$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz$ tar xzf redis-2.8.3.tar.gz$ cd redis-2.8.3$ make

2, after the completion of the compilation, enter the SRC directory, start the Redis service.

$ redis-server redis.conf


3. then test with the client to see if it started successfully .


$ redis-CLI

set  jun Hello

get  jun

" Hello "

Here Redis Basic is complete, other configuration and operation in the process of slowly groping it!


Linux installation Redis

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.