Subscription Conversion Service

This commit is contained in:
心隨緣動 2025-08-30 19:12:39 +08:00 committed by GitHub
parent cc308d241a
commit f0dd7f5929
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

10
x-ui.sh
View File

@ -1347,9 +1347,17 @@ server {
}
EOF
# --------- 使用 sed 替换 ExecStart 行,添加启动参数 ----------
sudo sed -i "/^ExecStart=/ s|$| run --port 8000|" "/etc/systemd/system/sublink.service"
# 重新加载 systemd 守护进程
sudo systemctl daemon-reload
# 重启 sublink 服务
sudo systemctl restart sublink
# --------- 开放防火墙端口 ----------
echo ""
echo -e "${yellow}请务必手动放行${plain} ${red} 8000 和 15268 ${yellow}端口!!${plain}"
echo -e "${yellow}请务必手动放行${plain}${red} 8000 和 15268 ${yellow}端口!!${plain}"
echo ""
# --------- 完成提示 ----------