File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -308,13 +308,13 @@ Created symlink from /etc/systemd/system/multi-user.target.wants/nginx.service t
308
308
309
309
``` bash
310
310
systemctl is-enabled servicename.service # 查询服务是否开机启动
311
- systemctl enable * .service # 开机运行服务
311
+ systemctl enable * .service # 开机运行服务
312
312
systemctl disable * .service # 取消开机运行
313
- systemctl start * .service # 启动服务
314
- systemctl stop * .service # 停止服务
313
+ systemctl start * .service # 启动服务
314
+ systemctl stop * .service # 停止服务
315
315
systemctl restart * .service # 重启服务
316
- systemctl reload * .service # 重新加载服务配置文件
317
- systemctl status * .service # 查询服务运行状态
316
+ systemctl reload * .service # 重新加载服务配置文件
317
+ systemctl status * .service # 查询服务运行状态
318
318
systemctl --failed # 显示启动失败的服务
319
319
```
320
320
@@ -345,16 +345,12 @@ chmod +x /etc/rc.d/rc.local
345
345
``` bash
346
346
# 启动
347
347
/usr/local/nginx/sbin/nginx
348
-
349
348
# 重启
350
349
/usr/local/nginx/sbin/nginx -s reload
351
-
352
350
# 关闭进程
353
351
/usr/local/nginx/sbin/nginx -s stop
354
-
355
352
# 平滑关闭nginx
356
353
/usr/local/nginx/sbin/nginx -s quit
357
-
358
354
# 查看nginx的安装状态,
359
355
/usr/local/nginx/sbin/nginx -V
360
356
```
You can’t perform that action at this time.
0 commit comments