LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 978|回复: 4

用代理上网,怎么用wget下载?

[复制链接]
发表于 2003-11-15 20:47:10 | 显示全部楼层 |阅读模式
RT
 楼主| 发表于 2003-11-15 20:48:19 | 显示全部楼层
看帮助,没有看到关于代理的选项,望高手告知,谢谢!!!
发表于 2003-11-16 07:53:56 | 显示全部楼层
wget --help
发表于 2003-11-16 09:28:20 | 显示全部楼层
修改 wgetrcf配置文件....

                                                                                                               
# You can set the default proxies for Wget to use for http and ftp.
# They will override the value in the environment.
http_proxy = http://proxy.yoyodyne.com:18023/
ftp_proxy = http://proxy.yoyodyne.com:18023/
发表于 2003-11-16 09:28:57 | 显示全部楼层
设置环境变量:
export http_proxy="http://proxy.address:port"
想永久生效,就修改/etc/wget/wgetrc文件,加入上面的那句话,不过记得把export去掉.
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表