1 解压
tar -zvxf redis-5.0.7.tar.gz
2 编译
make
3 指定路径安装
make PREFIX=/usr/local/redis-3.2.2 install
4 修改各种配置文件
daemonize yes
port
bind 0.0.0.0
requirepass 123456
5 指定conf启动
./redis-server /usr/local/redis-3.2.2/redis.conf
6 配置环境变量
export PATH=$PATH:/redis-4.0.9/src
source /etc/profile
7 重启/停止
service redis restart
systemctl restart redis.service
redis停止
redis-cli shutdown