42
46

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

CentOS (RHEL Redhat Enterprise Linux) にProxyの設定をする(http,https)

Last updated at Posted at 2014-07-18

CentOS (RHEL) にProxyの設定をするには(http,https)

/etc/profile を開く

# vi /etc/profile

以下の行を追記

PROXY='proxy.server.path:8080' # proxyサーバのドメインとポートを指定
export http_proxy=$PROXY
export HTTP_PROXY=$PROXY
export https_proxy=$PROXY
export HTTPS_PROXY=$PROXY

ファイルを保存し以下を実行して設定を反映

# source /etc/profile

もしくは

/etc/profileに追加せずに、/etc/profile.d/proxy.shなどのファイルを作成してその中に上記のproxy設定を記述するのも良いと思います。(私はこちら派)

42
46
3

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
42
46

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?