Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring a Proxy

To deploy SDKs online, you need to access the Internet to obtain resources. In an isolated network environment, you need to configure a proxy for accessing the Internet. If network access is available in the current environment, skip this section.

  1. Configure the .bashrc file.
    vi ~/.bashrc
  2. Press i to enter the insert mode and set the following configuration items:
    # Configure the HTTP/HTTPS proxy.
    export http_proxy="http://ip:port"
    export https_proxy="http://ip:port"

    ip:port indicates the IP address and port of the proxy server.

  3. Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
  4. Make the proxy configuration take effect.
    source ~/.bashrc
  5. Run the curl command to access any website. If the website information is displayed, the proxy is successfully configured and the Internet is connected.