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
Comments
Post a Comment