Open
Description
systemctl
常用命令
systemctl 是 systemd 的主命令,控制所有 service,如:
- 重新载入 systemd 的脚本配置文件内容: systemctl daemon-reload
- 立即启动 service: systemctl start example.service
- 让 service 开机自启: systemctl enable example.service
journalctl
journalctl 是 systemd 的日志命令,如:
- 指定主题: journalctl -u caddy
- tail 功能: journalctl -f -u caddy