Centos7停更后，对应的YUM仓库也无法连接，所以只能替换YUM源把下面的shell保存为如yumcentos7.sh，然后执行bash yumcentos7.sh即可#!/bin/bash...