1, decompression: TAR-ZXVF redis-3.0.0.tar.gz
2, LL
3. CD redis-3.0.0
Must have makefile at compile time
4. Make
[Root@localhost redis-3.0.0]# make
cd src && do all
make[1]: Enter directory "/USR/JAVA/REDIS-3.0.0/SRC"
CC ADLIST.O in
file included from adlist.c:34:0:
zmalloc.h:50:31: Fatal error: jemalloc/jemalloc.h: No file or directory
compilation interrupted.
make[1]: * * [ADLIST.O] Error 1
make[1]: Leave directory "/USR/JAVA/REDIS-3.0.0/SRC" Make
: * * * [ALL] Error 2
FIX: Make MALLOC=LIBC
Reference Link: http://blog.csdn.net/honchou56/article/details/53994708
5. Make Install Prefix=/usr/local/redis
Install, set installation path (PREFIX)
6, Cd/usr/local/redis/bin Path execution:./redis-server
Press CTRL + C to exit
7. Copy the redis.conf to the current directory
[Root@localhost bin]# cp/usr/java/redis-3.0.0/redis.conf.
[Root@localhost bin]# LL
Total dosage 3316
-rw-r–r–. 1 root root 18 January 18:43 Dump.rdb
-rwxr-xr-x. 1 root root 289504 January 18:33 Redis-benchmark
-rwxr-xr-x. 1 root root 25165 January 18:33 redis-check-aof
-rwxr-xr-x. 1 root root 56012 January 18:33 redis-check-dump
-rwxr-xr-x. 1 root root 417979 January 18:33 redis-cli
-rw-r–r–. 1 root root 41403 January 18:53 redis.conf
lrwxrwxrwx. 1 root root 12 January 18:33 Redis-sentinel-Redis-server
-rwxr-xr-x. 1 root root 2546423 January 18:33 redis-server
8. Edit Conf:vim redis.conf
Change to Yes to run in the background
9. Whether the process starts:
PS Aux|grep Redis
10. Linked server:
./redis-cli
Ping
If you specify the IP and port number:./redis-cli-h 192.168.25.100-p 6379
Summary:
Redis installation, I hope to help you.
Thank you for reading.