systemd 常用命令
启动
systemctl start <service>
停止
systemctl stop <service>
重启
systemctl restart <service>
重新加载服务配置
systemctl reload <service>
查看服务状态
systemctl status <service>
开机自启
systemctl enable <service>
取消开机自启
systemctl disable <service>
列出所有运行的服务
systemctl list-units --type=service
列出所有服务(包含未加载)
systemctl list-unit-files --type=service