安装redis和redis的exporter
注:安装redis原文地址
https://www.cnblogs.com/hjw-zq/p/9778514.html
安装redis
1.关闭防火墙
systemctl stop firewalld.service
2.安装redis
yum install redis
3.下载epel仓库
yum install epel-release
4.启动redis服务
systemctl start redis
5.查看redis状态
systemctl status redis
6.设置开机自启动
systemctl enable redis
安装redis的exporter
1.下载redis_exporter的tar包
2.解压
3.进入目录
4.启动redis的exporter
nohup /usr/local/exporter/redis_exporter-v1.0.3.linux-amd64/redis_exporter --redis.addr=localhost:6379 &