From fecb0e96e5e68163093c2762be676ebd391b475e Mon Sep 17 00:00:00 2001 From: mick Date: Fri, 10 Feb 2023 15:15:08 +0800 Subject: [PATCH] =?UTF-8?q?nginx=20=E6=9C=8D=E5=8A=A1=E6=93=8D=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx/cli.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/nginx/cli.md b/nginx/cli.md index 9154831..673c79d 100644 --- a/nginx/cli.md +++ b/nginx/cli.md @@ -3,12 +3,29 @@ Nginx

常用命令

-### 重启服务 +### 重新加载配置 ```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