您的位置:首页 > 运维架构 > Linux

linux-日常运维-服务管理-systemd

2018-10-31 02:21 941 查看

centos7,趋势
systemctl list-units --all --type=service
列出信息

空格往下翻,会看到解释
LOAD = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB. inactice :未激活 actice :激活 ,DESCRIPTION:一些解释信息
SUB = The low-level unit activation state, values depend on unit type.

几个常用的服务相关的命令
systemctl enable crond.service //让服务开机启动

systemctl disable crond //不让开机启动

systemctl status crond //查看状态

systemctl stop crond //停止服务

systemctl start crond //启动服务

systemctl restart crond //重启服务

systemctl is-enabled crond //检查服务是否开机启动

文件源路径:/usr/lib/systemd/system/

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息