Linux Proxy setting



Most of company have proxy server and have to route through it for access internet.
Though the browser and the system can set proxy by UI, yum and apt need addition setting from
the config file.

Since CentOS and Ubuntu are both used wildly, I record the step for seeting up proxy config file
for future used.

Ubuntu 16.16

create a apt.conf file

Acquire::http::proxy "http://proxy:port/";
Acquire::https::proxy "https://proxy:port/";
Acquire::ftp::proxy "ftp://proxy:port/";
Acquire::socks::proxy "socks://proxy:port/";
and put it in to the /etc/apt

CentOS 7


modified /etc/yum.conf

proxy=http://proxy:port
and... Done~!


This is the very simple tutorial for general situation.
If u need more complex setting please google it.
Thanks~





provide
           
                                                                                                                               

Comments

Popular posts from this blog

UBoot with iMX6 - Part 1

Install chrome on CentOS

Can't find pip3 ? Here is it!