CentOS8安装Redis6.0.9
1:操作环境
- centos8、redis6.0.9
- redis下载地址
2:安装
-
下载
wget https://download.redis.io/releases/redis-6.0.9.tar.gz
-
解压
tar -zxvf redis-6.0.9.tar.gz
-
安装
切换到解压目录:
make
完成后再
make install
-
备份配置文件
cp redis.conf redis.conf.bak
3:启动
修改redis.conf
-
后台守护运行
-
设置密码
-
设置外网访问
-
默认安装目录
cd usr/local/bin
-
启动redis-server
redis-server /application/redis/redis-6.0.9/redis.conf
-
启动redis-cli
redis-cli -p 6379
效果截图
![drawing](https://img2020.cnblogs.com/blog/1537140/202011/1537140-20201116154540211-119719516.png)
![drawing](https://img2020.cnblogs.com/blog/1537140/202011/1537140-20201116154739661-394877067.png)
centos7安装redis6.0+版本报错:
![drawing](https://img2022.cnblogs.com/blog/1537140/202208/1537140-20220805143239137-527030253.png)
安装SCL:
yum install redhat-lsb.x86_64
安装GCC11:
yum install centos-release-scl devtoolset-7
scl enable devtoolset-7 bash