[Linux] Proxy application

A note on how to go through a proxy to your Linux network. OS is CentOS.
Add the following to / etc / profile </ font>.

/etc/profile


PROXY='http://username:password@proxy-server IP or hostname:8080'
export http_proxy=$PROXY
export HTTP_PROXY=$PROXY
export https_proxy=$PROXY
export HTTPS_PROXY=$PROXY

Replace the port. If there is no authentication, the username: password @ part is unnecessary.
Reflect

source /etc/profile

Verification
printenv

By the way, if you are using proxypac etc., please note that even if you enter the pac path in PROXY as it is, it will not work.

If you want to set it for each user, use bashrc, .bash_profile </ font>. If you want to make the destination of yum a proxy, you can write it in /etc/yum.conf </ font>.
that's all