Centos7.4安装Redis4图文教程

                                     Centos7.4安装Redis4图文教程

此环境是基于阿里云的Ecs云服务进行的centos7.4安装redis4.0版本。

1、配置编译环境:

sudo yum install gcc-c++

2、下载源码安装包

wget http://download.redis.io/releases/redis-4.0.10.tar.gz

Centos7.4安装Redis4图文教程_第1张图片

3、解压源码

tar xzf redis-4.0.10.tar.gz

Centos7.4安装Redis4图文教程_第2张图片

4、安装,依次执行

cd redis-4.0.10
make
make install

Centos7.4安装Redis4图文教程_第3张图片

Centos7.4安装Redis4图文教程_第4张图片

5、启动redis服务

which redis-server

Centos7.4安装Redis4图文教程_第5张图片

/usr/local/bin/redis-server redis.conf

Centos7.4安装Redis4图文教程_第6张图片

6、查看redis服务进程

ps -ef | grep redis-server

7、链接Redis

redis-cli -h 127.0.0.1 -p 6379

8、简单操作

 

你可能感兴趣的:(Linux浅析)