First download Redis.
Http://redis.io/download this is the address;
>>> TAR-ZXVF redis.tar.gz
>>> switch to the directory under Redis
[[Email protected] local]# CD./redis-3.0.2
>>make
>>cd src && make all
MAKE[1]: Entering directory '/USR/LOCAL/REDIS-3.0.2/SRC '
CC ADLIST.O
In file included from adlist.c:34:
Zmalloc.h:50:31:error:jemalloc/jemalloc.h:no such file or directory
Zmalloc.h:55:2: Error: #error "Newer version of Jemalloc required"
MAKE[1]: * * * [ADLIST.O] Error 1
MAKE[1]: Leaving directory '/USR/LOCAL/REDIS-3.0.2/SRC '
Make: * * * [ALL] Error 2
>> Error
>>[[email protected] redis-3.0.2]# make Malloc=libc
Ok
>>[[email protected] redis-3.0.2]#./src/redis-server
>>10709:c Jul 01:09:36.574 # warning:no config file specified, using the default Config. In order to specify a config file use./src/redis-server/path/to/redis.conf
10709:m 01:09:36.574 * Increased maximum number of open files to 10032 (it is originally set to 1024).
_._
_.-' __ '-._
_.-`` `. `_. "-._ Redis 3.0.2 (00000000/0)
.-`` .-```. ' \ \ _.,_ '-._
(',.-' | ',) Running in standalone mode
| '-._ '-...-' __...-. '-._| ' ' _.-' | port:6379
| '-._ '. _/_.-' | pid:10709
'-._ '-._ '-./_.-' _.-'
| '-._ '-._ '-.__.-' _.-' _.-' |
| '-._ '-._ _.-' _.-' | Http://redis.io
'-._ '-._ '-.__.-' _.-' _.-'
| '-._ '-._ '-.__.-' _.-' _.-' |
| '-._ '-._ _.-' _.-' |
'-._ '-._ '-.__.-' _.-' _.-'
'-._ '-.__.-' _.-'
'-._ _.-'
'-.__.-'
Installing Redis under Linux