Install the Redis key-value database server in Linux

Source: Internet
Author: User

1) Redis Introduction

Redis is a high-performance key-value database.

Redis is essentially a Key/Value database, similar to the NoSQL database of Memcached, but its data can be stored persistently on the disk, solving the problem of no data loss after service restart, its values can be string, list, sets, or ordered sets ), all data types include push/pop, add/remove, server union, intersection, and difference between two sets. These operations are atomic, redis also supports various sorting capabilities.

2) download

Wget http://redis.googlecode.com/files/redis-2.6.13.tar.gz

Installation:

Tar xf redis-2.6.13.tar.gz

Cd redis-2.6.13

Make Error

Solution:

Yum-y install jemalloc-devel

Make MALLOC = libc

You can solve this problem.

Make install

Cp redis. conf/etc/

Cd src/

Cp redis-benchmark redis-cli redis-server/usr/bin/

Echo vm. overcommit_memory = 1>/etc/sysctl. conf allows free memory allocation

Sysctl-p

Start redis-server/etc/redis. conf

Try to connect to the database

Common commands and common operations refer to the following official documents: http://redis.readthedocs.org/en/latest/

Redis details: click here
Redis: click here

Recommended reading:

Redis cluster details

Install Redis in Ubuntu 12.10 (graphic explanation) + Jedis to connect to Redis

Redis series-installation, deployment, and maintenance

Install Redis in CentOS 6.3

Redis. conf

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.