linux下yum包更新不了 先查看yum.conf配置文件下yum源地址 wget http://mirrors.aliyun.com/repo/Centos-6.repo 下载下来 然后查看cat /etc/yum/yum.repos.d 更换yum源地址mv Centos-6.repo CentOS-Base.repo /etc/init.d/iptables stop 关闭防火墙 /etc/init.d/httpd start 开启http 服务