美文网首页
Linux系统systemctl一些命令

Linux系统systemctl一些命令

作者: iOS虞 | 来源:发表于2024-02-24 14:16 被阅读0次
  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

相关文章

网友评论

      本文标题:Linux系统systemctl一些命令

      本文链接:https://www.haomeiwen.com/subject/edhoadtx.html