杜坤福博客

Hi, 请登录

Centos7查询开机启动项服务


问题描述:

最近安装了zabbix设置了一些开机启动服务

例如:zabbix-server.service,httpd.service,mariadb.service,或者系统的firework.service

想知道这些服务开机有没有自启服务,查询了一下网上都讲到chkconfig,但是centos7已不用chkconfig了

解决方法:

使用 systemctl list-unit-files 可以查看启动项 

左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动

过滤查询可以systemctl list-unit-files | grep enable 过滤查看启动项如下

过滤查询可以systemctl list-unit-files | grep zabbix 过滤查看某服务名如下



相关推荐

评论

  • 昵称 (必填)
  • 邮箱
  • 网址
二维码
评论