LoginSignup
18
21

More than 5 years have passed since last update.

proxy越しにyum,wgetを使う時の設定

Last updated at Posted at 2014-09-21

クローズ環境からProxyサーバを通してyumとか使いたい時にどこに設定すれば良いかのメモ。
OSはCentOS6.5で試した。

yum

  • /etc/yum.confにプロキシサーバの情報を追記
proxy = http://proxy.example.com:xxxx

# ユーザ認証が必要な場合
proxy_username = decobisu
proxy_password = password

wget

  • ~/.wgetrcを作成して追記(rootだと/etc/wgetrc が既にある)
use_proxy = on
http_proxy = http://proxy.example.com:xxxx

# ユーザ認証が必要な場合
proxy_user = decobisu
proxy_password = password

teratermとかで繋いでそのセッションだけで有効にさせたい場合は、exportするかコマンドオプションにがっつり書いて実行すれば良いけど、認証付きでやるとパスワードがbashのログとかに残ってしまうので良くない。
一時的にやる時に設定ファイル書き換えないでも済むいい方法がないかなぁ。

18
21
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
21