mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-10 18:05:48 +02:00
chore: update docs
This commit is contained in:
parent
fbc800ff22
commit
ed820695da
3 changed files with 183 additions and 4 deletions
|
@ -90,8 +90,11 @@ bash -c "$(curl -L https://raw.githubusercontent.com/0xJacky/nginx-ui/main/insta
|
||||||
|
|
||||||
## Control Service
|
## Control Service
|
||||||
|
|
||||||
By this script, the Nginx UI will be installed as `nginx-ui` service in systemd.
|
By this script, the Nginx UI will be installed as a service. The installation script detects your system's service manager and sets up the appropriate service control mechanism.
|
||||||
Please use the follow `systemctl` command to control it.
|
|
||||||
|
### Systemd
|
||||||
|
|
||||||
|
If your system uses systemd, please use the following `systemctl` commands to control it:
|
||||||
|
|
||||||
::: code-group
|
::: code-group
|
||||||
|
|
||||||
|
@ -111,4 +114,60 @@ systemctl restart nginx-ui
|
||||||
systemctl status nginx-ui
|
systemctl status nginx-ui
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```shell [Enable at Boot]
|
||||||
|
systemctl enable nginx-ui
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
### OpenRC
|
||||||
|
|
||||||
|
If your system uses OpenRC, please use the following `rc-service` commands to control it:
|
||||||
|
|
||||||
|
::: code-group
|
||||||
|
|
||||||
|
```shell [Start]
|
||||||
|
rc-service nginx-ui start
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell [Stop]
|
||||||
|
rc-service nginx-ui stop
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell [Restart]
|
||||||
|
rc-service nginx-ui restart
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell [Show Status]
|
||||||
|
rc-service nginx-ui status
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell [Enable at Boot]
|
||||||
|
rc-update add nginx-ui default
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
|
||||||
|
### Init.d
|
||||||
|
|
||||||
|
If your system uses traditional init.d scripts, please use the following commands to control it:
|
||||||
|
|
||||||
|
::: code-group
|
||||||
|
|
||||||
|
```shell [Start]
|
||||||
|
/etc/init.d/nginx-ui start
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell [Stop]
|
||||||
|
/etc/init.d/nginx-ui stop
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell [Restart]
|
||||||
|
/etc/init.d/nginx-ui restart
|
||||||
|
```
|
||||||
|
|
||||||
|
```shell [Show Status]
|
||||||
|
/etc/init.d/nginx-ui status
|
||||||
|
```
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
|
@ -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
|
::: code-group
|
||||||
|
|
||||||
|
@ -105,4 +109,60 @@ systemctl restart nginx-ui
|
||||||
systemctl status 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
|
||||||
|
```
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
|
@ -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
|
::: code-group
|
||||||
|
|
||||||
|
@ -106,4 +110,60 @@ systemctl restart nginx-ui
|
||||||
systemctl status 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
|
||||||
|
```
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue