Sungeek

问题描述:

最近安装了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 过滤查看某服务名如下

 

分类:

技术点:

相关文章:

  • 2022-02-10
  • 2022-02-03
  • 2022-01-13
  • 2022-12-23
  • 2021-10-08
  • 2022-02-10
猜你喜欢
  • 2021-07-19
  • 2022-12-23
  • 2021-12-16
  • 2021-09-22
  • 2022-02-10
  • 2022-12-23
相关资源
相似解决方案