【system proxy】

# win
set http_proxy=http://127.0.0.1:7890
set https_proxy=http://127.0.0.1:7890
# permanent
setx http_proxy "http://127.0.0.1:7890"
setx https_proxy "http://127.0.0.1:7890"

# mac
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890

# 2. 永久设置代理(可选):
# 将代理配置添加到 ~/.bash_profile 或 ~/.zshrc 文件中,以便每次终端启动时自动应用。
posted @ 2025-07-18 16:54  十三山入秋  阅读(84)  评论(3)    收藏  举报