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