linux-けらし(自用,仅供学习)
老是记不清命令,复制粘贴备用下
0.项目地址:https://github.com/wanhebin/clash-for-linux
1.拉取项目:git clone https://github.com/wanhebin/clash-for-linux.git
2进入项目文件夹修改.env文件,填写你的神秘代码
3启动脚本:bash start.sh,
请执行以下命令加载环境变量: source /etc/profile.d/clash.sh
请执行以下命令开启系统代理: proxy_on
4检查服务端口:netstat -tln | grep -E '9090|789.'
5检查环境变量:env | grep -E 'http_proxy|https_proxy'
6关闭程序:bash shutdown.sh
补充一个在主机上访问WEB UI的方法:

先打开防火墙开放端口:
firewall-cmd --zone=public --add-port=8081/tcp --permanent
检查是否打开端口:
firewall-cmd --list-all

