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

@ -85,7 +85,11 @@ bash -c "$(curl -L -s https://cloud.nginxui.com/https://raw.githubusercontent.co
## 控制服务
通过此脚本Nginx UI 将作为 `nginx-ui` 服务安装在 systemd 中。请使用以下 `systemctl` 命令对其进行控制。
通过此脚本Nginx UI 将作为服务安装。安装脚本会检测您系统的服务管理器并设置相应的服务控制机制。
### Systemd
如果您的系统使用 systemd请使用以下 `systemctl` 命令对其进行控制:
::: code-group
@ -105,4 +109,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
```
:::