1、装置wget

yum -y install wget

2、/opt门路下下载redis

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

3、装置gcc

yum install gccgcc --version

4、解压redis包

tar -zxvf redis-6.2.1.tar.gz

5、cd redis-6.2.1/下,执行make编译成C

6、执行make install,装置实现

7、默认装置地位

/usr/local/bin

8、根本应用(配置后盾启动)

/opt/redis-6.2.1/redis.conf复制配置文件cp redis.conf /etc/redis.conf编辑/etc/redis.conf    daemonize no批改为yes启动cd /usr/local/bin./redis-server /etc/redis.conf查看redis状态ps -ef|grep redis通过客户端连贯redis./redis-cli127.0.0.1:6379> ping 打印pong示意联通状态失常 敞开127.0.0.1:6379> shutdown 或kill -9 <过程号>