1、下载clash和yacd dashboard
wget https://github.com/wnlen/clash-for-linux/raw/refs/heads/master/bin/clash-linux-amd64
wget -O dashboard.zip https://github.com/ramuses/clash-dashboard/archive/refs/heads/main.zip
##解压
unzip dashboard #解压后文件夹名字是clash-dashboard-main
mv clash-linux-amd64 clashchmod +x clash
2、dashboard配置
2.1 clash订阅文件修改
订阅文件自己下载,订阅文件几乎都是这样的
2.2 clash 和系统端口设置
订阅文件里默认端口是7890,
要让系统走这个代理需要配置一下系统代理
export https_proxy=http://127.0.0.1:7890
http_proxy=http://127.0.0.1:7890
all_proxy=socks5://127.0.0.1:7890
2.3 运行clash
nohup ./clash -f config.yaml & #这样就可以让clash 在后台运行
#要关掉代理的需要用ps命令看PID,再把它杀掉: kill -9 PID
2.4 dashboard切换节点
浏览器打开 ip:9090/ui 或 域名:9090/ui/,
假如我的远程服务器IP是210.24.87.32,所以在浏览器中打开http://210.24.87.32:9090/ui
最后就可以切换节点了