The first step towards this was to download, compile and install Redis5.
tar.gz redis package is available at http://redis.io/download. I downloaded this package and extracted it in
/opt directory. The installation page5 suggests executing the
make command. In my case, the command failed with the below error:
.... make: gcc: Command not found make: *** [net.o] Error 127 make: Leaving directory `/opt/redis-2.8.9/deps/hiredis' make: *** [hiredis] Error 2 make: Leaving directory `/opt/redis-2.8.9/deps' make: [persist-settings] Error 2 (ignored) CC adlist.o /bin/sh: cc: command not found make: *** [adlist.o] Error 127 make: Leaving directory `/opt/redis-2.8.9/src' make: *** [all] Error 2
The solution for the above problem was to install
make using the command:
yum install gcc make.
Upon completion of the installation, I triggered,
make once more. This time around, the
make command failed and the errors indicated that few header files were missing.
make: Entering directory `/opt/redis-2.8.9/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: *** [adlist.o] Error 1 make: Leaving directory `/opt/redis-2.8.9/src' make: *** [all] Error 2
cd /opt/redis-2.8.9/deps make cd .. make
Compiling the contents of the
deps (dependencies) folder before the issuing,
make in the
/opt/redis-2.8.9/ solved the problem.
make is successful, the
redis-server binary would end up in the
src folder (in my case, it would be
/opt/redis-2.8.9/src). The server can be started using:
Its time to start creating a start-up script (daemon process) and configure it to start during the runlevels 2, 3, 4 and 5.