为Windows11设置cmd/powershell代理 – MasterH's Grocery Store

为Windows11设置cmd/powershell代理

临时方案

设置代理

set http_proxy = http://127.0.0.1:7890  # 端口为代理软件的端口号,请根据自己本地的设置进行更改
set https_proxy = https://127.0.0.1:7890

取消代理

set http_proxy = 
set https_proxy = 

永久方案

设置代理

netsh winhttp set proxy 127.0.0.1:7890

取消代理

netsh winhttp reset proxy

查看代理

netsh winhttp show proxy

Related Posts

Leave a Reply

Your email address will not be published. Required fields are marked *