linux configuration network proxy
Add a network proxy in the shell configuration file
-
Open the shell configuration file
vim ~/.bashrc
-
Add proxy at the end of the file (without square brackets)
http_proxy=[你要设置的代理]
https_proxy=[你要设置的代理]
proxy=[你要设置的代理]
- Reload the shell configuration to make the configured configuration take effect
source ~/.bashrc