clash linux

Last updated on November 20, 2024 am

🧙 Questions

linux科学上网

☄️ Ideas

下载clash
wget https://openfly.oss-cn-shanghai.aliyuncs.com/clash/clash-linux-amd64-2022.07.07.gz
gzip -d clash-linux-amd64-2022.07.07.gz
sudo mv clash-linux-amd64-2022.07.07 /usr/bin/clash
sudo chmod +x /usr/bin/clash
拷贝链接

自己找

mkdir -p /home/ispong/.config/clash/
wget --no-check-certificate -O /home/ispong/.config/clash/config.yaml https://api.touhou.center/link/xxxx?clash=1
设置访问端口号
vim /home/ispong/.config/clash/config.yaml
# 默认端口 7890
mixed-port: 7890
allow-lan: true
# 默认端口号 9090
external-controller: '0.0.0.0:9090'
secret: 'ispong123'
#一定要注释掉下面这一行
#routing-mark: 6666
下载依赖
cd /home/ispong/.config/clash/
wget https://openfly.oss-cn-shanghai.aliyuncs.com/clash/Country.mmdb
启动
sudo clash -d /home/zhiqingyun/.config/clash/
查看日志进程
sudo netstat -nlpt | grep 9090
通过网页配置clash

host: 198.18.2.15
port: 9090
sercet: ispong123

使用代理

只支持http的访问

sudo vim /etc/profile

export https_proxy=127.0.0.1:7890
export http_proxy=127.0.0.1:7890

source /etc/profile

clash linux
https://ispong.isxcode.com/os/clash/clash linux/
Author
ispong
Posted on
March 20, 2022
Licensed under