From d5f79de3870de9a0b31c00586cb540a0a7cfb90e Mon Sep 17 00:00:00 2001 From: AydenMeng Date: Sat, 13 Jul 2024 09:51:22 +0800 Subject: [PATCH] fix clash usage error --- content/content.zh/applications/clash.md | 33 ++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/content/content.zh/applications/clash.md b/content/content.zh/applications/clash.md index 81eb451..5bcc2ad 100644 --- a/content/content.zh/applications/clash.md +++ b/content/content.zh/applications/clash.md @@ -12,9 +12,23 @@ toc: true 下载后: ```bash unzip -x clash1130-loong64.zip -./clash -d path_to_config.yaml +./clash -d dir_include_config.yaml ``` +其中`dir_include_config.yaml`是`config.yaml`所在的文件夹路径. + +然后在设置中, 在首选项中设置代理服务器, 或者配置环境变量: + +``` +http: port: + 127.0.0.1 7890 +https: port: + 127.0.0.1 7890 +socks: port: + 127.0.0.1 7891 +``` + +具体端口号信息在`config.yaml`中查看. ## 新世界 @@ -22,5 +36,20 @@ unzip -x clash1130-loong64.zip ```bash pacman -S clash -clash -d path_to_config.yaml +clash -d dir_include_config.yaml ``` + +其中`dir_include_config.yaml`是`config.yaml`所在的文件夹路径. + +然后在设置中, 在首选项中设置代理服务器, 或者配置环境变量: + +``` +http: port: + 127.0.0.1 7890 +https: port: + 127.0.0.1 7890 +socks: port: + 127.0.0.1 7891 +``` + +具体端口号信息在`config.yaml`中查看.