Help us understand the problem. What is going on with this article?

CentOSのプロキシ経由接続の設定 (コピペ用)

More than 3 years have passed since last update.

自分のメモ用
いちいち設定するのが面倒くさい人用

cat <<__EOT__ | sudo tee -a /etc/profile.d/proxy.sh
PROXY_IP=proxy_ip
PROXY_PORT=proxy_port

export PROXY=\$PROXY_IP:\$PROXY_PORT
export http_proxy=\$PROXY
export HTTP_PROXY=\$PROXY
export https_proxy=\$PROXY
export HTTPS_PROXY=\$PROXY
__EOT__

#上のやつながしてリログして↓のやつ流す

echo "proxy=http://$PROXY" | sudo tee -a /etc/yum.conf
echo "https_proxy=http://$PROXY" | sudo tee -a /etc/wgetrc
echo "http_proxy=http://$PROXY" | sudo tee -a /etc/wgetrc
echo "ftp_proxy=http://$PROXY" | sudo tee -a /etc/wgetrc

全部コピペでyumとwgetのproxy設定完了

tyoku
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away