https://redis.io/
1、下载
$ cd /usr/local/
$ wget http://download.redis.io/releases/redis-4.0.7.tar.gz $ tar xzf redis-4.0.7.tar.gz $ cd redis-4.0.7 $ make
2、安装
mkdir /usr/local/redis
cd /usr/local/redis-4.0.7/
make PREFIX=/usr/local/redis install
cp redis.conf /usr/local/redis
vi /usr/local/redis/redis.conf
daemonize yes
./bin/redis-server ./redis.conf
vi /etc/rc.local
/usr/local/redis/bin/redis-server /usr/local/redis/redis.conf
export PATH=$PATH:$JRE_HOME/bin:/usr/local/redis/bin
source /etc/profile