Skip to content

Instantly share code, notes, and snippets.

@thiago-vieira
Created March 27, 2021 01:01
Show Gist options
  • Save thiago-vieira/b5c7f423a6a2bb1760d24cd9f8eeba15 to your computer and use it in GitHub Desktop.
Save thiago-vieira/b5c7f423a6a2bb1760d24cd9f8eeba15 to your computer and use it in GitHub Desktop.
Linux - Configurando proxy do ambiente
export http_proxy=http://user:password@proxy:port/
export https_proxy=http://user:password@proxy:port/
export ftp_proxy=http://user:password@proxy:port/
export no_proxy=localhost
Se o apt-get não funcionar, adicionar as linhas abaixo no arquivo /etc/apt/apt.conf
Acquire::http::proxy "http://user:password@proxy:port/";
Acquire::https::proxy "http://user:password@proxy:port/";
Acquire::ftp::proxy "http://user:password@proxy:port/";
Acquire::socks::proxy "http://user:password@proxy:port/";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment