Ubuntu
1. 下载clash:https://github.com/Dreamacro/clash/releases
2. 解压tar文件:gzip -d *.gz
3. 添加权限:sudo chmod +x clash
4. 下载mmdb:https://github.com/Dreamacro/maxmind-geoip/releases
5. 将配置文件放到同目录:config.yaml
6. 设置外部web界面用以调试节点:
git clone https://github.com/Dreamacro/clash-dashboard.git
cd clash-dashboard
git checkout -b gh-pages origin/gh-pages
7. 设置ui目录:在config.yaml中设置external-ui:clash-dashboard目录
8. 运行:sudo ./clash -d .
9. 访问ip:9090/ui 即可看到ui,填入信息,点击添加进入到管理页面
10. 在/etc/environmet 设置代理
http_proxy="http://127.0.0.1:7890/" https_proxy="http://127.0.0.1:7890/" ftp_proxy="http://127.0.0.1:7890/" no_proxy="localhost,127.0.0.1,localaddress,.localdomain.com" HTTP_PROXY="http://127.0.0.1:7890/" HTTPS_PROXY="http://127.0.0.1:7890/" FTP_PROXY="127.0.0.1:7890/" NO_PROXY="localhost,127.0.0.1,localaddress,.localdomain.com"