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

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 [服务名称]