CentOS 配置代理

配置全局/yum/wget网络代理

往 /etc/profile或/etc/yum.conf或/etc/wgetrc 添加以下行:

$ echo 'export http_proxy="http://proxy.**.**.com:8080"' >> /etc/profile

$ echo 'export https_proxy="https://proxy.**.**.com:8080"' >> /etc/profile

$ echo 'export ftp_proxy=$http_proxy' >> /etc/profile

$ reboot -d

原文地址:https://www.cnblogs.com/wzcblogs/p/7992031.html