Upgrade & Secure Your Future with DevOps, SRE, DevSecOps, MLOps!

We spend hours on Instagram and YouTube and waste money on coffee and fast food, but won’t spend 30 minutes a day learning skills to boost our careers.
Master in DevOps, SRE, DevSecOps & MLOps!

Learn from Guru Rajesh Kumar and double your salary in just one year.


Get Started Now!

How to Configure Web Proxy on CentOS | Tutorials | scmGalaxy

web-proxy-on-centos

web-proxy-on-centos

If your internet connection is behind a web proxy, you need to configure the following on your CentOS server:

System-wide proxy settings – add the following lines to your /etc/environment file:

# vi /etc/environment

http_proxy=”http://proxysrv:8080/”
https_proxy=”https://proxysrv:8080/”
ftp_proxy=”ftp://proxysrv:8080/”
no_proxy=”.mylan.local,.domain1.com,host1,host2″

To apply these settings without restarting the machine run the following commands on the bash shell:

export http_proxy="http://proxysrv:8080/"
export https_proxy="https://proxysrv:8080/"
export ftp_proxy="ftp://proxysrv:8080/"
export no_proxy=".mylan.local,.domain1.com,host1,host2"

You also need to configure yum:

# vi /etc/yum.conf

proxy=http://proxysrv:8080/

Subscribe
Notify of
guest
1 Comment
Newest
Oldest Most Voted
Inline Feedbacks
View all comments
trackback
Google
2 years ago

Google

Every when in a while we pick out blogs that we read. Listed beneath are the newest web pages that we select.

1
0
Would love your thoughts, please comment.x
()
x