Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring a Network Proxy

If the server cannot directly access the Internet, configure a network proxy.

  1. Modify the profile file.
    1. Open the /etc/profile file.
      vi /etc/profile
    2. 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
      
    3. Make the proxy take effect.
      source /etc/profile
  2. Check whether the server can access the Internet.
    curl www.baidu.com