Linux installation of Redis methods and common problems

  

Redis is a key-value storage system, somewhat similar to Memcached, but more practical than Memcached, the following small series will introduce you how to install Redis in Linux and common problem handling Let's learn together.

1. Use tar -xzvf redis-2.4.5.tar.gz to unpack the installation package

2. Use the make command to compile Redis need to see if an error occurs if the lack of gcc Gcc-c++

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 `/data0/src/redis-2.6. 2/src‘

make: *** [all] Error 2

The solution is:

make MALLOC=libc

3.make install

The above is the Linux installation of Redis steps and the introduction of common problems, if you have a lack of gcc gcc-c++ error during the installation process, you can try the solution described above.

Copyright © Windows knowledge All Rights Reserved