redis安装
//安装依赖包
[root@localhost ~]# yum -y install gcc gcc-c++ centos-release-scl
//升级gcc版本
[root@localhost ~]# yum -y install devtoolset-9-gcc devtoolset-9-gcc-c++ devtoolset-9-binutils && scl enable devtoolset-9 bash
//安装redis
[root@localhost redis-6.0.6]# make
//把这个移到/usr/bin下就可以直接使用
[root@localhost src]# cp redis-server redis-cli /usr/bin/
[root@localhost src]# redis-server
24093:C 13 Aug 2020 05:00:31.734 # oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
24093:C 13 Aug 2020 05:00:31.734 # Redis version=6.0.6, bits=64, commit=00000000, modified=0, pid=24093, just started
24093:C 13 Aug 2020 05:00:31.734 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
24093:M 13 Aug 2020 05:00:31.735 * Increased maximum number of open files to 10032 (it was originally set to 1024).
_._
_.-``__ ''-._
_.-`` `. `_. ''-._ Redis 6.0.6 (00000000/0) 64 bit
.-`` .-```. ```\/ _.,_ ''-._
( ' , .-` | `, ) Running in standalone mode
|`-._`-...-` __...-.`