nginx 服务操作

This commit is contained in:
徐永兴 2023-02-10 15:15:08 +08:00
parent f72198d0df
commit fecb0e96e5

View File

@ -3,12 +3,29 @@ Nginx
<h3>常用命令</h3>
</h1>
### 重启服务
### 重新加载配置
```bash
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