分享

在麒麟系统重有关于systemctl 命令的常见用法

1. 查看服务状态
(1)systemctl status 服务名  # 实时显示服务运行状态(如active (running)(正常运行)、inactive(未运行)和 failed(启动失败))
# 示例:查看SSH服务状态
systemctl status sshd
2. 启动/停止/重启服务
(1)systemctl start 服务名   # 启动服务
# 示例:启动nginx服务
systemctl start nginx
(2)systemctl stop 服务名   # 停止服务
(3)systemctl restart 服务名 # 重启服务(适用于服务配置修改后)
(4)systemctl reload 服务名 # 平滑重载配置

试读已结束,请付费阅读全文。

  本文只能试读34%,付费后可阅读全文。 

版权说明:论坛帖子主题均由合作第三方提供并上传,若内容存在侵权,请进行举报

没找到任何评论,期待你打破沉寂

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

联系在线客服