nginx 服务操作
This commit is contained in:
parent
f72198d0df
commit
fecb0e96e5
19
nginx/cli.md
19
nginx/cli.md
@ -3,12 +3,29 @@ Nginx
|
|||||||
<h3>常用命令</h3>
|
<h3>常用命令</h3>
|
||||||
</h1>
|
</h1>
|
||||||
|
|
||||||
### 重启服务
|
### 重新加载配置
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
nginx -s reload
|
nginx -s reload
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### 启动停止服务
|
||||||
|
|
||||||
|
```bash
|
||||||
|
#启动nginx
|
||||||
|
systemctl start nginx
|
||||||
|
#停止Nginx
|
||||||
|
systemctl stop nginx
|
||||||
|
#重启Nginx
|
||||||
|
systemctl restart nginx
|
||||||
|
#查看Nginx状态
|
||||||
|
systemctl status nginx
|
||||||
|
#启用开机启动Nginx
|
||||||
|
systemctl enable nginx
|
||||||
|
#禁用开机启动Nginx
|
||||||
|
systemctl disable nginx
|
||||||
|
```
|
||||||
|
|
||||||
### Docker 容器中重新加载配置
|
### Docker 容器中重新加载配置
|
||||||
|
|
||||||
```docker
|
```docker
|
||||||
|
Loading…
x
Reference in New Issue
Block a user