rz redis:5.0.5.tar.gz
tar xf redis:5.0.5.tar.gz
mv redis-5.0.5 /data/
2、编译redis位置并执行配置脚本
cd /data/redis-5.0.5
make&&makePREFIX=/usr/local/redis installcd utils/
./install_server.sh
3、以下是自动程序编译选项:
Please select the redis port for this instance: [6379]
Please select the redis config file name [/etc/redis/6371.conf]
Please select the redis log file name [/var/log/redis_6371.log]
Please select the data directory for this instance [/var/lib/redis/6371]
Please select the redis executable path [][6371]
/usr/local/redis/6371/6371.conf
/usr/local/redis/6371/log
/usr/local/redis/6371/
/usr/local/redis/bin/redis-serve