×

Centos7查询开机启动项服务

hqy hqy 发表于2019-05-09 18:46:08 浏览2936 评论0

抢沙发发表评论

问题描述:

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


 您阅读本篇文章共花了: 

打赏

本文链接:https://kinber.cn/post/686.html 转载需授权!

分享到:


推荐本站淘宝优惠价购买喜欢的宝贝:

image.png

群贤毕至

访客