美文网首页
systemd 介绍

systemd 介绍

作者: cli1871 | 来源:发表于2019-06-20 17:59 被阅读0次

common location for systemd unit files on Centos 

/usr/lib/systemd/system/

/lib/systemd/system/

/etc/systemd/system

Common commands

list all services

systemctl list-unit-files

Check auto restart status on system restart

systemctl is-enabled  node-exporter.service 

systemctl is-enabledfilebeat.service

use the enable command to ensure that the service starts whenever the system boots

systemctl enable myservice


check the status of the service

systemctl status myservice


service can be stopped or restarted using standard systemd commands

systemctl stop myservice

systemctl restart myservice

相关文章

网友评论

      本文标题:systemd 介绍

      本文链接:https://www.haomeiwen.com/subject/vbgjqctx.html