Fork me on github

Windows命令行设置代理

cmd,powershell,git-bash设置代理的方式是不一样的

powershell

$env:https_proxy = "127.0.0.1:7890"
$env:http_proxy = "127.0.0.1:7890"

git-bash

export http_proxy='127.0.0.1:7890'
export https_proxy='127.0.0.1:7890'

cmd

set http_proxy='127.0.0.1:7890'
set https_proxy='127.0.0.1:7890'
posted @ 2020-07-12 00:07  zjy4fun  阅读(3163)  评论(0编辑  收藏  举报