其实很简单 去到路径 /etc/yum.conf 文件下 在结尾处添加 proxy=http://proxy:port 即可 转载于:https://blog.51cto.com/kelvinxue/1223714