Systemd 主命令 - Systemctl 相关用法(长期记录)
systemctl 查看当前已安装服务(取代 chkconfig) 命令 说明 systemctl 列出所有的系统服务 systemctl list-units 列出所有启动 unit systemctl list-unit-files 列出所有启动文件 systemctl list-units --type=service --all 列出所有 service 类型的 unit systemctl list-units --type=service --all grep cpu 列出 CPU 电源管理机制的服务 systemctl list-units --type=target --all 列出所有 target systemctl list-unit-files 列出所有的系统服务 systemctl is-active [unit type] 查看服务是否运行 systemctl is-enable [unit type] 查看服务是否设置为开机启动 systemctl mask [unit type] 注销指定服务 sy...
