Configuring a Network Proxy
If the server cannot directly access the Internet, configure a network proxy.
- Modify the profile file.
- Open the /etc/profile file.
vi /etc/profile
- Add the following content to the /etc/profile file based on your requirements.
1 2 3
export http_proxy="http://Username:Password@Proxy_IP_address:Proxy_port" export https_proxy=$http_proxy export no_proxy=127.0.0.1,.huawei.com,localhost,local,.local
- Make the proxy take effect.
source /etc/profile
- Open the /etc/profile file.
- Check whether the server can access the Internet.
curl www.baidu.com
Parent topic: Configuring the Installation Environment