1.下载
1
| wget http://download.redis.io/releases/redis-5.0.5.tar.gz
|
2.解压
1
| tar -xf redis-5.0.5.tar.gz
|
3.安装
1 2
| make make install PREDIX=/opt/redis
|
4.修改环境变量
1 2 3
| vim /etc/profile export REDIS_HOME:/opt/redis export PATH:.$PATH:REDIS_HOME/bin
|
5.安装服务
1 2
| cd utils ./install_server.sh
|
按脚本填写配置,自动生成脚本文件在/etc/redis/6379