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.
- Configure the .bashrc file.
vi ~/.bashrc
- 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.
- Press Esc to exit the insert mode. Type :wq! and press Enter to save the file and exit.
- Make the proxy configuration take effect.
source ~/.bashrc
- Run the curl command to access any website. If the website information is displayed, the proxy is successfully configured and the Internet is connected.
Parent topic: Common Operations