I use the system is:Redhat
[Email protected] ~]# wget http://download.redis.io/releases/redis-2.8.12.tar.gz
Tar xzf redis-2.8.12.tar.gz
[Email protected] ~]# tar xzf redis-2.8.12.tar.gz
[Email protected] ~]# CD redis-2.8.12
[[email protected] redis-2.8.12]# ls
00-releasenotes BUGS contributing COPYING deps INSTALL Makefile MANIFESTO README redis.conf runtest Runtest-sen Tinel sentinel.conf src tests utils
[[email protected] redis-2.8.12]# make
But this kind of compile will error, seemingly because of the system reasons;
The error is as follows:
The workaround is to add the compile parameter settings as follows:
[email protected] redis-2.8.12]# make cflags= "-march=i686"
Compile successfully;
To start and run Redis:
[Email protected] redis-2.8.12]# Src/redis-server
Open another terminal to run, Redis client
[Email protected] redis-2.8.12]# SRC/REDIS-CLI
127.0.0.1:6379> Set name Chenzhou
Ok
127.0.0.1:6379> Get Name
"Chenzhou"
127.0.0.1:6379>