下载clash的binary文件
把文件权限设置为可执行,放到想放的位置,可以重命名为clash
使用:
clash -h
Usage of clash:
-d string
set configuration directory
-ext-ctl string
override external controller address
-ext-ui string
override external ui directory
-f string
specify configuration file
-secret string
override secret for RESTful API
-t test configuration and exit
-v show current version of clash
在喜爱的位置创建一个config的文件夹,里面放上config.yaml
文件。如果是订阅链接,用curl -f "订阅链接" >> config.yaml
下下来。
然后clash -d {配置文件夹}
即可。
成功启动之后,在需要proxy的地方设置代理:export https_proxy=http://127.0.0.1:7890; export http_proxy=http://127.0.0.1:7890
© 版权声明
文章版权归作者所有,未经允许请勿转载。如内容涉嫌侵权,请在本页底部进入<联系我们>进行举报投诉!
THE END
暂无评论内容