首页 > 技术文章 > 开启 cmd cmder 代理

yg0070 2020-11-02 15:05 原文

cmd

set http_proxy=http://127.0.0.1:7008
set https_proxy=http://127.0.0.1:7008

cmder 使用bash模式

export http_proxy=http://127.0.0.1:7008
export https_proxy=http://127.0.0.1:7008

PowerShell

$env:http_proxy=http://127.0.0.1:7008
$env:https_proxy=http://127.0.0.1:7008

临时有效,关闭会话后失效。可通过curl测试,不要使用ping。

推荐阅读