1.查看centos版本
# lsb_release -a
2.yum或者rpm出错
rm -f /var/lib/rpm/__db*
rpm –rebuilddb
yum clean all

哟?不错哎 订阅小米的RSS Feeds 回去慢慢看^_^