centos7中一条命令安装redis并设置开机自动启动
yum install -y epel-release && sleep 3 && yum install -y redis && systemctl enable --now redis
查看redis服务的状态
systemctl status redis