安装
下载项目
git clone https://github.com/AFanSKyQs/ClashForLinux.git进入目录
cd ClashForLinux运行脚本启动
bash StartRun.sh粘贴你的订阅地址、回车
https://rabtwofourzerosevenzerofour-sub.online/link/MsfF3yFlc4bLXcj0远程设置节点
访问 Clash Dashboard
通过浏览器访问```start.sh```执行成功后输出的地址,例如:http://192.168.0.1:9090/ui
登录管理界面
在API Base URL一栏中输入:http://IP:9090 ,在Secret(optional)一栏中输入启动成功后输出的Secret。
点击Add并选择刚刚输入的管理界面地址,之后便可在浏览器上进行一些配置。
更多教程
此 Clash Dashboard 使用的是yacd项目,详细使用方法请移步到yacd上查询。
以后启动
如果要设置新链接直接重新运行【3】的脚本即可
$ sudo sh start.sh正在启动Clash服务...
服务启动成功! [ OK ]
Clash Dashboard 访问地址:http://IP:9090/ui
Secret:xxxxxxxxxxxxx
请执行以下命令加载环境变量: source /etc/profile.d/clash.sh
请执行以下命令开启系统代理: proxy_on
若要临时关闭系统代理,请执行: proxy_off
source /etc/profile.d/clash.sh
proxy_on检查服务端口
$ netstat -tln | grep -E '9090|789.'
tcp 0 0 127.0.0.1:9090 0.0.0.0:* LISTEN
tcp6 0 0 :::7890 :::* LISTEN
tcp6 0 0 :::7891 :::* LISTEN
tcp6 0 0 :::7892 :::* LISTEN检查环境变量
$ env | grep -E 'http_proxy|https_proxy'
http_proxy=http://127.0.0.1:7890
https_proxy=http://127.0.0.1:7890停止程序
cd ClashForLinux
bash shutdown.sh
proxy_off
评论区