Kの日記~with Ubuntu~

はじめまして。Kです。

wget を proxy 経由で使う

2009年04月03日 13時33分12秒 | Ubuntu Linux
===============================
===============================

ブログを移設致しました。

こちらよりご覧いただけます。

今後ともよろしくお願い申し上げます。

===============================
===============================

apt-get 同様、wgetもちゃんと設定してやらないとプロキシ経由で使えません。

こちらはわりと分かりやすいです。


$ sudo vi /etc/wgetrc


でwgetrcを開いたら、何か色々記述されてるので、下の方にいくと、


# 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.seto-private:8080/
# ftp_proxy = http://proxy.seto-private:8080/

# If you do not want to use proxy at all, set this to off.
# use_proxy = on


という部分があるので、上記でいう3,4,6行目の"#"を削除("#"のついてる行はコメント)


# 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.seto-private:8080/
ftp_proxy = http://proxy.seto-private:8080/

# If you do not want to use proxy at all, set this to off.
use_proxy = on


として、保存してやりましょう。これでOK。

最新の画像もっと見る