tabimoba.net

とあるエンジニアの雑記帳

wgetでのプロキシ設定

wgetでプロキシ経由でのダウンロードを行いたい場合は、/etc/wgetrcのhttp_proxy,https_proxy,ftp_proxyへプロキシサーバの設定を追加します。

設定例(10.0.0.1:3128は適宜変更)

echo 'http_proxy=http://10.0.0.1:3128/' >> /etc/wgetrc
echo 'https_proxy=http://10.0.0.1:3128/' >> /etc/wgetrc
echo 'ftp_proxy=http://10.0.0.1:3128/' >> /etc/wgetrc