Update one-api.service
This commit is contained in:
parent
520be070ec
commit
4fccd630a5
@ -1,13 +1,13 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=One API Service
|
Description=One API Service
|
||||||
After=network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
User=yourusername #守护进程用户名
|
User=yourusername # 守护进程用户名
|
||||||
WorkingDirectory=/path/to/one-api #oneapi运行路径
|
WorkingDirectory=/path/to/One-API # One API运行路径
|
||||||
ExecStart=/path/to/one-api/one-api --port 3000 --log-dir /path/to/one-api/logs #端口
|
ExecStart=/path/to/One-API/one-api --port 3000 --log-dir /path/to/One-API/logs # 端口
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=5
|
RestartSec=5
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
Loading…
Reference in New Issue
Block a user