https://redis.io/download下载最新stable版,当前最新版为redis-5.0.8.tar.gz
=================================================================================
cd /mnt/wget && tar -zxvf redis-5.0.8.tar.gz && cd redis-5.0.8 && make && make install
修改/mnt/wget/redis-5.0.8/redis.conf:
1. daemonize yes
2. requirepass ---
mkdir /etc/redis
cp /mnt/wget/redis-5.0.8/redis.conf /etc/redis/6379.conf
cp /mnt/wget/redis-5.0.8/utils/redis_init_script /etc/rc.d/init.d/redis
chkconfig redis on
service redis start
ps -ef | grep redis