指令行界面的一般代理設定方法
1、在profile檔案中設定相關環境變量
# vi /etc/profile
http_proxy=http://192.168.20.20:3128 # 分别指定http、https、ftp協定使用的代理伺服器位址
https_proxy=http://192.168.20.20:3128
ftp_proxy=http://192.168.20.20:3128
no_proxy=192.168.20. # 通路區域網路位址(192.168.20.0/24網段)時不使用代理,可以用逗号分隔多個位址
export http_proxy https_proxy ftp_proxy no_proxy
儲存退出,登出重新登陸系統即可生效