web123456

Methods for configuring the http_proxy proxy (Linux as well as Window)

catalogs

  • parameters
  • 1. Linux
    • 1.1 Configuration file
    • 1.2 Command line
  • 2. Window

parameters

Setting the http_proxy proxyThe main thing is to connect the intranet to the extranet ip.

  • ip is the ip address of your own computer

  • The port number is the port of the proxy

1. Linux

1.1 Configuration file

This can be configured via a configuration file
etc/bashrc or /etc/profileAdd the following environment variable to

export http_proxy=http://ip:port number
export https_proxy=http://ip:port number
  • 1
  • 2

After that, you can start the configuration source

1.2 Command line

It is also possible to enter commands directly from the command line
pass (a bill or inspection etc)sudo export http_proxy=http://ip:port number
as well asexport https_proxy=http://ip:port number

You can test if you can connect to the URL via curl

2. Window

The general commands are somewhat different, using set

set http_proxy=http://ip:port number& set https_proxy=http://ip:port number
  • 1

Screenshots are below:

在这里插入图片描述