linux下使用clash

下载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
如果内容对您有所帮助,就支持一下吧!
点赞0 分享
评论 抢沙发

请登录后发表评论

    暂无评论内容