Linux系统systemctl一些命令

  1. Linux Systemctl 是一个系统管理守护进程,一些命令如下
#列出所有可用单元
systemctl list-unit-files

#列出所有运行单元
systemctl list-units

#列出所有失败单元
systemctl -failed

#检查某个单元是否启用
systemctl is-enabled xxx.service

#列出所有服务
systemctl list-unit-files -type=service

#启动、重启、停止、重载服务以及检查服务
systemctl start xxx.service
systemctl restart xxx.service
systemctl stop xxx.service
systemctl reload xxx.service
systemctl status xxx.service

#激活服务并在开机启动或禁用服务
systemctl is-active xxx.service
systemctl enable xxx.service
systemctl disable xxx.service

#列出所有系统挂载点
systemctl list-unit-files -type=mount


#检查服务所有配置
systemctl show xxx

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容