启用epelrepo源>yuminstallepel-release>yumupdate安装redis>yuminstall-yredis启动redis配置开机自启>systemctlstartredis&&systemctlenableredis设置redi