1、install make
yum -y install gcc automake autoconf libtool make
yum install gcc gcc-c++
2、install redis
$ wget https://download.redis.io/releases/redis-6.2.5.tar.gz
$ tar xzf redis-6.2.5.tar.gz
$ cd redis-6.2.5
$ make
$ src/redis-server
$ src/redis-cli
redis> set foo bar
OK
redis> get foo
“bar”
修改 redis.conf 文件,把 daemonize no 改为 daemonize yes
[root@localhost bin]# vi redis.conf
后台启动
[root@localhost bin]# ./redis-server redis.conf