Linux无root权限配置连接时自启后台程序

第一步 安装好xray

第二步 进行配置

1
2
3
4
5
6
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

Linux无root权限配置连接时自启后台程序
https://b.limour.top/1290.html
Author
Limour
Posted on
December 6, 2021
Licensed under