1, redis obtain resources
wget http://download.redis.io/releases/redis-4.0.8.tar.gz
2, extract
takes xzvf Redis-4.0.8.tar.gz
3, installation
cd-repeat 4.0.8
make
cd src
make install PREFIX=/usr/local/redis
4, moved to the installation configuration file directory
cd ../
mkdir /usr/local/redis/conf
mv redis.conf /usr/local/redis/conf
5, configured as a background to start redis
/usr/local/redis/cont/redis.conf vi // will daemonize no change daemonize yes
6, will be added to the boot redis
Plus years in /etc/rc.local: / usr / local / redis / bin / redis-Server /usr/local/redis/cont/redis.conf (meaning turn calls this turn redis command, while rc.local You need to have execute permissions, if not, then execute chmod + x /etc/rc.local)