Windows

CMD

  1. set http_proxy=http://192.168.123.254:7890
  2. set https_proxy=http://192.168.123.254:7890

PowerShell

  1. $Env:http_proxy="http://192.168.123.254:7890"
  2. $Env:https_proxy="http://192.168.123.254:7890"

Linux

  1. export https_proxy=http://192.168.123.254:7890
  2. export http_proxy=http://192.168.123.254:7890
  3. export ALL_PROXY=socks5://192.168.123.254:7891

Test

  1. curl -I www.google.com