chore: update docs

This commit is contained in:
Jacky 2025-05-07 15:55:09 +08:00
parent fbc800ff22
commit ed820695da
No known key found for this signature in database
GPG key ID: 215C21B10DF38B4D
3 changed files with 183 additions and 4 deletions

View file

@ -86,7 +86,11 @@ bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/insta
## 控制服務
透過此指令碼Nginx UI 將作為 `nginx-ui` 守護行程安裝在 systemd 中。請使用以下 `systemctl` 指令控制。
透過此指令碼Nginx UI 將作為服務安裝。安裝指令碼會檢測您系統的服務管理器並設置相應的服務控制機制。
### Systemd
如果您的系統使用 systemd請使用以下 `systemctl` 指令控制:
::: code-group
@ -106,4 +110,60 @@ systemctl restart nginx-ui
systemctl status nginx-ui
```
```shell [開機啟動]
systemctl enable nginx-ui
```
:::
### OpenRC
如果您的系統使用 OpenRC請使用以下 `rc-service` 指令控制:
::: code-group
```shell [啟動]
rc-service nginx-ui start
```
```shell [停止]
rc-service nginx-ui stop
```
```shell [重啟]
rc-service nginx-ui restart
```
```shell [顯示狀態]
rc-service nginx-ui status
```
```shell [開機啟動]
rc-update add nginx-ui default
```
:::
### Init.d
如果您的系統使用傳統的 init.d 指令碼,請使用以下指令控制:
::: code-group
```shell [啟動]
/etc/init.d/nginx-ui start
```
```shell [停止]
/etc/init.d/nginx-ui stop
```
```shell [重啟]
/etc/init.d/nginx-ui restart
```
```shell [顯示狀態]
/etc/init.d/nginx-ui status
```
:::