サーバエンジニアの構築めも

Linux関連を中心としたサーバの構築記録

[CentOS 7] Proxyの設定

yumwgetProxyサーバ経由で利用するための設定。

yum

# vi /etc/yum.conf
以下の行を追加
proxy=http://<ProxyサーバのIPアドレス>:<Proxyサーバのポート番号>

wget

# vi /etc/wgetrc
以下の行を追加
http_proxy = http://<ProxyサーバのIPアドレス>:<Proxyサーバのポート番号>
ftp_proxy = http://<ProxyサーバのIPアドレス>:<Proxyサーバのポート番号>