diff --git a/clash.md b/clash.md index 5111f53..850bca4 100644 --- a/clash.md +++ b/clash.md @@ -6,6 +6,43 @@ | Mac |[Intel](https://stf.jkwlstv.cn/app/cfm_intel.dmg) [Arm](https://stf.jkwlstv.cn/app/cfm_arm.dmg)| | Android |[通用](https://stf.jkwlstv.cn/app/cmfa.apk)| +## 代理服务器设置 + +### Linux + +```bash +# 打开用户环境变量配置 +nano ~/.bashrc +# 添加以下片段 +export HTTP_PROXY="http://127.0.0.1:7890" +export HTTPS_PROXY="http://127.0.0.1:7890" +export http_proxy="http://127.0.0.1:7890" +export https_proxy="http://127.0.0.1:7890" +export NO_PROXY="localhost,127.0.0.1,::1,192.168.*,10.*,.jkwlstv.cn" +export no_proxy="localhost,127.0.0.1,::1,192.168.*,10.*,.jkwlstv.cn" +``` + +### Git + +```bash +# 设置 +git config --global http.proxy http://127.0.0.1:7890 +git config --global https.proxy http://127.0.0.1:7890 +# 查看 +git config --global --get http.proxy +git config --global --get https.proxy +``` + +### Windows + +```text +以Windows 11举例:使用 Win + I 快捷键打开设置,搜索"代理服务器"。 +点击"代理服务器设置"或者"更改手动代理服务器设置",在"使用代理服务器"行点击编辑。 +点亮"使用代理服务器"开关,代理IP地址:"127.0.0.1",端口:"7890"。 +在"请勿对以下条目开头的地址使用代理服务器"输入框中粘贴以下内容: +localhost;127.*;192.168.*;10.*;172.16.*;172.17.*;172.18.*;172.19.*;172.20.*;172.21.*;172.22.*;172.23.*;172.24.*;172.25.*;172.26.*;172.27.*;172.28.*;172.29.*;172.30.*;172.31.*;.jkwlstv.cn +``` + ## Android