优化安装流程
This commit is contained in:
@@ -156,7 +156,6 @@ cat > "$CONFIG_FILE" <<EOF
|
||||
"tag": "vless-in",
|
||||
"listen": "::",
|
||||
"listen_port": 443,
|
||||
"sniff": true,
|
||||
"tls": {
|
||||
"enabled": true,
|
||||
"server_name": "www.google.com",
|
||||
@@ -220,5 +219,9 @@ EOF
|
||||
|
||||
# Reload and Start
|
||||
systemctl daemon-reload
|
||||
echo -e "${GREEN}Service created. You can start it with: systemctl start sing-box${NC}"
|
||||
systemctl enable sing-box
|
||||
systemctl restart sing-box
|
||||
|
||||
echo -e "${GREEN}Service installed and started successfully.${NC}"
|
||||
echo -e "${GREEN}Check status with: systemctl status sing-box${NC}"
|
||||
echo -e "${GREEN}View logs with: journalctl -u sing-box -f${NC}"
|
||||
|
||||
Reference in New Issue
Block a user