CentOSでプロキシを設定する方法

1.システム全体
# vim /etc/environment

http_proxy="http://cft.sample.com:8080/"
HTTP_PROXY="http://cft.sample.com:8080/"
https_proxy="https://cft.sample.com:8080/"
HTTPS_PROXY="https://cft.sample.com:8080/"
ftp_proxy="ftp://cft.sample.com:8080/"
FTP_PROXY="ftp://cft.sample.com:8080/"

2.yumでプロキシサーバーを経由
# vim /etc/yum.conf

proxy=http://cft.sample.com:8080/

Linux

Posted by arkgame