mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-11-27 11:09:22 +08:00
Adding a systemd service configuration.
This commit is contained in:
22
README.md
22
README.md
@@ -155,6 +155,28 @@ OPENAI_API_KEY=<your api key here>
|
||||
bash <(curl -s https://raw.githubusercontent.com/Yidadaa/ChatGPT-Next-Web/main/scripts/setup.sh)
|
||||
```
|
||||
|
||||
使用Systemd守护运行
|
||||
```
|
||||
[Unit]
|
||||
Description=ChatGPT-Next-Web
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
User=
|
||||
Group=
|
||||
Type=simple
|
||||
ExecStart=/usr/bin/yarn start
|
||||
WorkingDirectory=/path/to/dir
|
||||
Environment=OPENAI_API_KEY=""
|
||||
Environment=CODE=""
|
||||
Environment=PORT=
|
||||
Environment=BASE_URL=""
|
||||
Environment=PROTOCOL=https
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
```
|
||||
|
||||
### 容器部署 Docker Deployment
|
||||
|
||||
```shell
|
||||
|
||||
Reference in New Issue
Block a user