centos7服务管理组件systemctl的服务存贮目录和常用列表命令

来源:互联网 发布:速写练线稿软件 编辑:程序博客网 时间:2024/05/20 03:40

有时候配置服务需要用到,特此留存:


systemctl服务主体存贮目录:

/usr/lib/systemd/system/

systemctl服务开机启动链接存贮目录:

/etc/systemd/system/basic.target.wants/


列出所有开机自启的服务

systemctl list-unit-files|grep enabled


列出防火墙服务的自启状态

systemctl list-unit-files|grep firewalld


列出所有服务的层级和依赖关系,可以指定某个服务

systemctl list-dependencies [服务名称]

1 0
原创粉丝点击