linux-けらし(自用,僅供學(xué)習(xí))
老是記不清命令,復(fù)制粘貼備用下
0.項目地址:https://github.com/wanhebin/clash-for-linux
1.拉取項目:git clone https://github.com/wanhebin/clash-for-linux.git
2進(jìn)入項目文件夾修改.env文件,填寫你的神秘代碼
3啟動腳本:bash start.sh,
請執(zhí)行以下命令加載環(huán)境變量: source /etc/profile.d/clash.sh?
請執(zhí)行以下命令開啟系統(tǒng)代理: proxy_on
4檢查服務(wù)端口:netstat -tln?|?grep -E?'9090|789.'
5檢查環(huán)境變量:env?|?grep -E?'http_proxy|https_proxy'
6關(guān)閉程序:bash shutdown.sh
補(bǔ)充一個在主機(jī)上訪問WEB UI的方法:

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


標(biāo)簽: