Preamble: As Tencent cloud disk accident, all things must come again, just to take this opportunity to also put this process down.
Previous describes the mysql installation, the installation redis
The first step: Get package redis
$ wget http://download.redis.io/releases/redis-4.0.8.tar.gz
$ Takes xzf redis-4.0.8.tar.gz
$ Cd-repeat 4.0.8
Step Two: Compile
$ make
Question 2.0:
/ Bin / sh: cc: command not found
解决:yum -y install gcc automake autoconf libtool make
Question 2.1:
zmalloc.h: 50: 31: Fatal error: jemalloc / jemalloc.h: No such file or directory
#include <jemalloc/jemalloc.h>
Solve: make MALLOC = libc
Step 3: Install
$make install
Step four: test
$ make test
Question 4.0:
You need tcl 8.5 or newer in order to run the Redis test
Solve 4.0:
wget http://downloads.sourceforge.net/tcl/tcl8.6.8-src.tar.gz
tar -xvf tcl8.6.8-src.tar.gz
cd tcl8.6.8/unix/
sudo ./configure
sudo make
sudo make install
Step Five: Start redis
sh src/redis-server redis.conf
At this point the installation is complete, the next step is to configure the redis