Redis Installation
1, download, decompression and installation:
$ wget http://download.redis.io/releases/redis-2.8.5.tar.gz
$ tar xzf redis-2.8.5.tar.gz
$ cd redis-2.8.5
$ make
The compiled executables are in the SRC directory, respectively, Redis-server, REDIS-CLI, Redis-benchmark, and redis-stat, and they function as follows:
The Redis-server:redis server's daemon launcher Redis-cli:redis the command-line operations tool. Of course, you can also use Telnet to operate the Redis-benchmark:redis Performance test tool based on its plain text protocol, and test the read-write Performance Redis-stat:redis State Detection Tool Redis your system and your configuration. Can detect Redis current state parameters and latency conditions
2, after we successfully installed the Redis, we can run the Redis directly redis-server, at this time it is in accordance with the default configuration to run (the default configuration is not even background run). We want Redis to run according to our requirements, we need to modify the configuration file, open redis.conf modify parameters. According to their own situation adjustment, I change here daemonize no for daemonize yes, let it run for the background.
Start Redis:
Src/redis-server redis.conf
Detect whether to open:
Ps-ef | grep Redis or NETSTAT-TAPN
3, use the REDIS-CLI Operation tool Test to see
$SRC/redis-cli set MyKey ' testdate '
$src/redis-cli get MyKey
4, easy to use can put Redis-server and redis-cli under/bin.