rpm -q gcc
sudo yum install gcc # 如果不是管理员登录需要在命令前加sudo gcc -v
sudo yum update # 更新源 sudo yum install redis # 安装Redis
sudo systemctl start redis ps -aux|grep redis
验证Redis服务器正在监听端口号6379
设置Redis服务器开机自启
sudo systemctl enable redis
sudo systemctl stop redis
sudo systemctl restart redis