CentOS7 wget 代理的设置
打开对应配置文件。
# 编辑wget配置文件 vi /etc/wgetrc
在打开的配置文件中,将其中代理参数的注释去掉,即将https_proxy,http_proxy,ftp_proxy注释去掉,并填写代理地址,例如:
https_proxy=http://10.64.64.250:8080/
http_proxy=http://10.64.64.250:8080/
ftp_proxy=http://10.64.64.250:8080/
打开对应配置文件。
# 编辑wget配置文件 vi /etc/wgetrc
在打开的配置文件中,将其中代理参数的注释去掉,即将https_proxy,http_proxy,ftp_proxy注释去掉,并填写代理地址,例如:
https_proxy=http://10.64.64.250:8080/
http_proxy=http://10.64.64.250:8080/
ftp_proxy=http://10.64.64.250:8080/