8000 chore: Update README.md · jaywcjlove/nginx-tutorial@a355668 · GitHub
[go: up one dir, main page]

Skip to content

Commit a355668

Browse files
committed
chore: Update README.md
1 parent 05f274c commit a355668

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -308,13 +308,13 @@ Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service t
308308

309309
```bash
310310
systemctl is-enabled servicename.service # 查询服务是否开机启动
311-
systemctl enable *.service # 开机运行服务
311+
systemctl enable *.service # 开机运行服务
312312
systemctl disable *.service # 取消开机运行
313-
systemctl start *.service # 启动服务
314-
systemctl stop *.service # 停止服务
313+
systemctl start *.service # 启动服务
314+
systemctl stop *.service # 停止服务
315315
systemctl restart *.service # 重启服务
316-
systemctl reload *.service # 重新加载服务配置文件
317-
systemctl status *.service # 查询服务运行状态
316+
systemctl reload *.service # 重新加载服务配置文件
317+
systemctl status *.service # 查询服务运行状态
318318
systemctl --failed # 显示启动失败的服务
319319
```
320320

@@ -345,16 +345,12 @@ chmod +x /etc/rc.d/rc.local
345345
```bash
346346
# 启动
347347
/usr/local/nginx/sbin/nginx
348-
349348
# 重启
350349
/usr/local/nginx/sbin/nginx -s reload
351-
352350
# 关闭进程
353351
/usr/local/nginx/sbin/nginx -s stop
354-
355352
# 平滑关闭nginx
356353
/usr/local/nginx/sbin/nginx -s quit
357-
358354
# 查看nginx的安装状态,
359355
/usr/local/nginx/sbin/nginx -V
360356
```

0 commit comments

Comments
 (0)
0