Skip to content

systemd 系列 #141

Open
Open
@Bpazy

Description

@Bpazy

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions