Rate This Document
Findability
Accuracy
Completeness
Readability

Configuring a Network Proxy

The MariaDB deployment requires connections to the Internet. If the environment cannot access the Internet, configure a network proxy. If the environment can access the Internet, skip this section.

  1. Run the curl command to access any website. If the website information is displayed, the proxy is successfully configured and the Internet is connected.
  2. Modify the profile file.
    1. Open /etc/profile.
      1
      vim /etc/profile
      
    2. Press i to enter the insert mode and add the following content to the /etc/profile file. Set the user name, password, proxy IP address, and proxy port 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. Press Esc, type :wq!, and press Enter to save the file and exit.
    4. Make the proxy take effect.
      1
      source /etc/profile
      
  3. Run the curl command to access any website. If the website information is displayed, the proxy is successfully configured and the Internet is connected.