First, Introduction
Redis is an open source project, a nosql database key-value stored in memory. 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 periodically writes the updated data to disk or writes the modification to the appended record file.
Second, installation
1. Official website: https://redis.io/
2. Download
One way: Manually download tar.gz,copy to your own Linux system (I'm using this method).
Way two: Using the Linux command:$ wget http://download.redis.io/releases/redis-2.8.3.tar.gz
3. Unzip-compile-install
(1) New in/usr/directory
$ mkdir/usr/Redis// copy tar xzf redis-2.8.3.tar.gz placed under/usr/redis/and into/usr/redis/$ tar xzf redis-2.8.3. tar.gz$ cd redis-2.8.3|make Install (Ubuntu system uses this command otherwise it will say redis-xx not install)
(2) The tools we need are: in the SRC directory, there are four executables redis-server, Redis-benchmark, Redis-cli, and redis.conf. And then copy it to a directory.
Description: My directory is like this:/usr/redis/redis-2.8.3/src, I copy the above files to:/usr/redis/redis-server, Redis-benchmark, REDIS-CLI and redis.conf
// The current directory is:/usr/redis/redis-2.8.3/srcsudo cp redis-server /usr/redissudo cp redis-BENCHMARK/USR /redissudo cp redis-cli /usr/redissudo cp redis.conf /usr//usr/redis
(3) Start the client and server test (open two windows)
// start the server ./redis-Server redis.conf// start the client test ./redis-cliset name Aaronget name Aaron
Redis-linux Installation