【笔记】Clash学习笔记

前言

Clash is a cross-platform rule-based proxy utility that runs on the network and application layer, supporting various proxy and anti-censorship protocols out-of-the-box.(Github

手动编译

下载项目

1
git clone https://github.com/Dreamacro/clash.git

编译项目

1
go build main.go

运行项目

  • 默认配置文件在~/.config/clash/config.yaml
1
./main

指定配置文件目录

1
./main -d ~/.config/clash/

指定配置文件

1
./main -f ~/.config/clash/config.yaml

直接下载二进制文件

下载依赖

MacOS

1
brew install clash

运行项目

1
clash

完成

参考文献

clash