In an unfriendly network environment, some development resources (dependencies) cannot be downloaded and installed directly. At this time, we need to use a proxy.
If the terminal is used frequently, the content of the terminal about the proxy is essential.
set http proxy
1 2 3 4 5 |
|
set https proxy
1 2 3 4 |
|
unset proxy
1 2 3 |
|
Set proxy exclusion list
Sometimes, we need to open the proxy, but some domain names do not go through the proxy, such as
- Internal network, using a proxy will give an error
- Domestic network, it will slow down after using a proxy
1 2 |
|
The above setting proxy, setting proxy exclusion list, can also be placed in .bashrc or .zshrc for automatic persistence processing.
This article is reprinted from https://droidyue.com/blog/2022/08/09/proxy-setting-in-terminal/
This site is for inclusion only, and the copyright belongs to the original author.