wget通过代理上网办法:
先安装ntlmaps设置好代理(步骤略)
方法一(只针对wget):
# vi /etc/wgetrc
按a或i进入编辑模式
http_proxy = http://127.0.0.1:5865
https_proxy = http://127.0.0.1:5865
ftp_proxy = http://127.0.0.1:5865
use_proxy = on
按Esc键退出编辑模式
:wq (保存并退出)
方法二(wget和curl均适用):
$ sudo vi /etc/profile
按a或i进入编辑模式
export http_proxy="http://127.0.0.1:5865"
export https_proxy="http://127.0.0.1:5865"
export ftp_proxy="http://127.0.0.1:5865"
按Esc键退出编辑模式
:wq (保存并退出)
$ sudo source /etc/profile
转载于:https://blog.51cto.com/yangzhiming/1333154