systemctl 服务管理、单元与定时器
systemctl start
启动一个已配置的单元
systemctl start 单元名
systemctl stop
停止运行中的单元
systemctl stop 单元名
systemctl restart
重新启动单元
systemctl restart 单元名
systemctl reload
不中断进程地重新加载配置
systemctl reload 单元名
systemctl status
查看单元状态与最近日志
systemctl status 单元名 [--no-pager] [--full]
systemctl enable
建立开机自启链接
systemctl enable [--now] 单元名
systemctl disable
取消开机自启链接
systemctl disable [--now] 单元名
systemctl daemon-reload
让 systemd 重新读取单元文件
sudo systemctl daemon-reload
systemctl cat
查看单元文件及其覆盖片段
systemctl cat 单元名
systemctl edit
创建单元文件的覆盖片段
systemctl edit [--full] 单元名
systemd-analyze verify
静态检查单元文件语法与字段
systemd-analyze verify 单元文件路径
systemctl list-units
按类型和状态筛选单元
systemctl list-units [--type=service] [--state=failed] [--all]
journalctl -u
按单元过滤日志
journalctl -u 单元名 [-n 行数] [--since 时间] [-f]
systemd-analyze calendar
校验并预览 OnCalendar 表达式
systemd-analyze calendar '表达式'
systemctl list-timers
列出定时器与下次触发时间
systemctl list-timers [--all] [--no-pager]