format: package name -> github.com/QuantumNous/new-api (#2017)

This commit is contained in:
Seefs
2025-10-11 15:30:09 +08:00
committed by GitHub
parent ff530f991b
commit 5010f2d004
258 changed files with 1225 additions and 1023 deletions

18
new-api.service Normal file
View File

@@ -0,0 +1,18 @@
# File path: /etc/systemd/system/new-api.service
# sudo systemctl daemon-reload
# sudo systemctl start new-api
# sudo systemctl enable new-api
# sudo systemctl status new-api
[Unit]
Description=One API Service
After=network.target
[Service]
User=ubuntu # 注意修改用户名
WorkingDirectory=/path/to/new-api # 注意修改路径
ExecStart=/path/to/new-api/new-api --port 3000 --log-dir /path/to/new-api/logs # 注意修改路径和端口号
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target