linux configuration network proxy

linux configuration network proxy

Add a network proxy in the shell configuration file

  1. Open the shell configuration file
    vim ~/.bashrc

  2. Add proxy at the end of the file (without square brackets)

http_proxy=[你要设置的代理]
https_proxy=[你要设置的代理]
proxy=[你要设置的代理]
  1. Reload the shell configuration to make the configured configuration take effect
    source ~/.bashrc

Guess you like

Origin blog.csdn.net/qq_39378657/article/details/111869605