Update one-api.service

This commit is contained in:
chunzhi
2023-05-11 16:09:46 +08:00
committed by GitHub
parent 520be070ec
commit 4fccd630a5

View File

@@ -4,8 +4,8 @@
[Service]
User=yourusername # 守护进程用户名
WorkingDirectory=/path/to/one-api #oneapi运行路径
ExecStart=/path/to/one-api/one-api --port 3000 --log-dir /path/to/one-api/logs #端口
WorkingDirectory=/path/to/One-API # One API运行路径
ExecStart=/path/to/One-API/one-api --port 3000 --log-dir /path/to/One-API/logs # 端口
Restart=always
RestartSec=5