5

【笔记】在Linux上使用Clash实现网络代理

 1 year ago
source link: https://feiju12138.github.io/2022/10/26/%E5%9C%A8Linux%E4%B8%8A%E4%BD%BF%E7%94%A8Clash%E5%AE%9E%E7%8E%B0%E7%BD%91%E7%BB%9C%E4%BB%A3%E7%90%86/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

【笔记】在Linux上使用Clash实现网络代理

2022-10-26

1

在Linux上使用Clash实现网络代理,用于使云服务器可以加速访问Github

下载Clash

  • 可以从Dreamacro/clash手动下载,然后上传到Linux,也可以使用Wget命令直接下载
  • 如果是手动下载的压缩包,可以先解压再上传到Linux;如果是直接使用Wget命令下载的压缩包,需要在Linux上解压
wget https://github.com/Dreamacro/clash/releases/download/v1.11.8/clash-linux-amd64-v1.11.8.gz
gunzip clash-linux-amd64-v1.11.8.gz
mv clash-linux-amd64-v1.11.8 clash
chmod +x clash

首次访问自动生成默认配置

  • 自动生成的配置文件会被放到~/.config/clash/目录下
./clash
+ .config
+ clash
- cache.db
- config.yaml
- Country.mmdb

Country.mmdb:每个人都一样,如果网络不好,初始化时候下载不下来,可以已经下载好的复制过来
config.yaml:核心配置文件,可以手动配置代理,也可以将之前配置好的覆盖默认的

IDC严选


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK