Linux 下安装 Redis

1 · NineHolic · July 7, 2020, 4 p.m.
Summary
Linux 下编译安装 Redis 以及使用脚本安装 1、编译安装 Redis # 下载解压文件 wget http://download.redis.io/releases/redis-5.0.7.tar.gz tar -zxvf redis-5.0.7.tar.gz # 安装依赖 yum -y install gcc gcc-c++ tcl # 编译 redis6.x 需要高版本的 gcc yum -y install centos-release-scl yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils source /opt/rh/devtoolset-9/enable echo "source /opt/rh/devtoolset-9/enable" >>/etc/profile gcc --version # 编译 redis 源码 cd redis-5.0.7 make -j2 # 安装到指定目录 cd src make -j2 install PREFIX=/us...