Centos7查询开机启动项服务

Centos7查询开机启动项服务 centos

问题描述:
最近安装了zabbix设置了一些开机启动服务
例如:zabbix-server.service,httpd.service,mariadb.service,或者系统的firework.service
想知道这些服务开机有没有自启服务,查询了一下网上都讲到chkconfig,可是centos7已不用chkconfig了
解决方法:
使用 systemctl list-unit-files 能够查看启动项
左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动
Centos7查询开机启动项服务
过滤查询能够systemctl list-unit-files | grep enable 过滤查看启动项以下
Centos7查询开机启动项服务
过滤查询能够systemctl list-unit-files | grep zabbix 过滤查看某服务名以下
Centos7查询开机启动项服务ide