From 9fc3172818b9ad3c56bcc0dba84ac1dc6b7f8960 Mon Sep 17 00:00:00 2001 From: neo Date: Tue, 5 Dec 2023 21:57:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0faq?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide/faq.md | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/docs/guide/faq.md b/docs/guide/faq.md index 4d6f9f3..a7a5fd8 100644 --- a/docs/guide/faq.md +++ b/docs/guide/faq.md @@ -22,16 +22,27 @@ source ~/.zprofile ## 终端设置代理 -在你的代理软件中找到`http`端口对应的值,替换下面设置脚本中的`1080`,然后在终端里执行。 +在你的代理软件中找到`http`端口号,然后把下面脚本中的`1080`替换成你找到的端口号,然后在终端执行。 ```shell // 给终端设置代理 -export http_proxy=http://127.0.0.1:1088;export https_proxy=$http_proxy;export all_proxy=$http_proxy +export http_proxy=http://127.0.0.1:1080;export https_proxy=$http_proxy;export all_proxy=$http_proxy // 取消代理设置 unset http_proxy;unset https_proxy;unset all_proxy ``` +### 验证是否生效 + +在终端执行以下脚本可以验证: + +```shell +curl https://www.google.com -I +``` + +如果返回结果第一行包含`HTTP/1.1 200 OK`则说明已生效。 + + ## 取消 git 代理 当遇到包含"Unsupported proxy syntax in"提示的问题是,和可能是设置了`git`代理,同时代理无法访问。