Redis教程

阿里云CentOS8 Redis的安装和使用

本文主要是介绍阿里云CentOS8 Redis的安装和使用,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!

一、Redis安装

1.下载

https://redis.io/

2.上传至服务器并解压

3.查看gcc

gcc --version

如果没有gcc,需要下载

4.编译并下载

进入解压后的redis目录执行

make

然后执行

make install

默认下载到的位置:/usr/local/bin

5.后台启动redis

5.1 备份redis.conf

cp redis.conf /etc/redis.conf

5.2 修改redis.conf

vim /etc/redis.conf

将daemonize no 改为 yes,允许后台启动

5.3 后台启动redis

进入到redis下载目录

cd /usr/local/bin/

启动

redis-server /etc/redis.conf

查看

ps -ef | grep redis

客户端访问

redis-cli

未完待续…
阿里云服务器搭建Java环境及Tomcat服务器

这篇关于阿里云CentOS8 Redis的安装和使用的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!