systemctl使用方法
查看当前的服务启动
systemctl list-units --type=service
查看当前服务开机自启,同时过滤程序ConsumerLog
systemctl list-unit-files | grep ConsumerLog
服务启动、状态、停止、重启
启动
systemctl start *****.service
状态
systemctl status *****.service
停止
systemctl stop *****.service
重启
systemctl restart *****.service
journalctl使用方法
查看服务启动的程序的日志
journalctl -u *****(服务名称)
标签:服务,service,启动,list,journalctl,用法,systemctl From: https://www.cnblogs.com/yeziwinone/p/17866659.html