1、官网
https://redis.io/download
2、由于实验平台是虚拟机,所以需要安装gcc等。
统一安装gcc,包括其他工具。、
yum -y install gcc gcc-c++ autoconf pcre pcre-devel make automake
yum -y install wget httpd-tools vim
验证
gcc --version
3、后台启动redis服务
在安装目录下找到redis.conf
使用vim命令,在命令模式下输入/daemonize
找到配置daemonize,将其后面的no,改为yes即可。
4、设置密码
找到requirepass 配置。
5、设置远程可以访问。