第一步 安装好xray
- https://limour.top/1140.html 里有相应步骤
- https://limour.top/631.html 里有配置环境变量的步骤
第二步 进行配置
PIDS=`ps -ef |grep 'xray run -c /home/gene/zl_liu/etc/xui2.json' |grep -v grep | awk '{print $2}'`
if [ "$PIDS" != "" ]; then
echo "xray is runing!"
else
xray run -c /home/gene/zl_liu/etc/xui2.json >/home/gene/zl_liu/log/xray.log 2>&1 &
fi
Comments NOTHING