指尖上的记忆指尖上的记忆
首页
  • 基础
  • Laravel框架
  • Symfony框架
  • 基础
  • Gin框架
  • 基础
  • Spring框架
  • 命令
  • Nginx
  • Ai
  • Deploy
  • Docker
  • K8s
  • Micro
  • RabbitMQ
  • Mysql
  • PostgreSsql
  • Redis
  • MongoDb
  • Html
  • Js
  • 前端
  • 后端
  • Git
  • 知识扫盲
  • Golang
🌟 gitHub
首页
  • 基础
  • Laravel框架
  • Symfony框架
  • 基础
  • Gin框架
  • 基础
  • Spring框架
  • 命令
  • Nginx
  • Ai
  • Deploy
  • Docker
  • K8s
  • Micro
  • RabbitMQ
  • Mysql
  • PostgreSsql
  • Redis
  • MongoDb
  • Html
  • Js
  • 前端
  • 后端
  • Git
  • 知识扫盲
  • Golang
🌟 gitHub

ubuntu安装clash:

1.进入:https://github.com/Dreamacro/clash,选择合适的版本下载,我这里选择: clash-linux-amd64-v1.16.0.gz 版本

2.解压缩:gzip -d clash-linux-amd64-v1.16.0.gz 

3.添加可执行权限: chmod +x clash-linux-amd64-v1.16.0
 
4.移动到bin目录下: sudo mv clash-linux-amd64-v1.16.0 /usr/local/bin/clash

5.查看版本:clash -v

6.执行命令: clash,可能回去要一个mmb文件,默认会自动下载

7.添加配置文件到yaml: wget -O config.yaml https://v3.45678.xyz/link/pyokPnvoerX5aDW8?clash=1 //代理链接

8.当上面配置好了,再次运行clash即可,如下:
guoshipeng@tianyi510s:~$ clash 
INFO[0000] Start initial compatible provider AsianTV    
INFO[0000] Start initial compatible provider GlobalTV   
INFO[0000] Start initial compatible provider Others     
INFO[0000] Start initial compatible provider Proxy      
INFO[0000] Start initial compatible provider Domestic   
INFO[0000] RESTful API listening at: [::]:9090 

9.会发现这个官方版本,没有clash的客户端,使用了网上的各种客户端,都不哈用,最后还是看国人版的:https://github.com/Fndroid/clash_for_windows_pkg/releases
使用步骤如下:
进入到local目录: cd /usr/local
下载最新版本:https://github.com/Fndroid/clash_for_windows_pkg/releases/download/0.20.24/Clash.for.Windows-0.20.24-x64-linux.tar.gz
解压缩:sudo tar zxvf Clash.for.Windows-0.20.24-x64-linux.tar.gz
将这个长文件移动到clash, sudo mv 'Clash for Windows-0.20.24-x64-linux' clash
cd ./clash
执行: ./cfw 即可弹出可视化框,在Profiles的输入Download from a URL链接,然后下载,即可加载所有代理的配置文件