# vps-manager systemd 服务配置 # 部署位置:/etc/systemd/system/vps-manager.service # 使用方法:systemctl daemon-reload && systemctl enable --now vps-manager [Unit] Description=VPS Asset Manager (vps-manager) After=network-online.target Wants=network-online.target [Service] Type=simple WorkingDirectory=/opt/vps-manager ExecStart=/opt/vps-manager/.venv/bin/uvicorn app.main:app --host 0.0.0.0 --port 8000 Restart=always RestartSec=5 [Install] WantedBy=multi-user.target