Centos7 查询开机启动项服务

Supervisor 启动dotnet报错:can't find command 'dotnet' 文章中说到检查开机启动服务,就顺便开个帖子,把查询方式贴给大家:
1.systemctl list-unit-files 查看启动项
左边是服务名称,右边是状态,enabled是开机启动,disabled是开机不启动

 2.systemctl list-unit-files | grep {enabled|disable|static}  过滤查看启动项,未启动项,静态项

   我用 systemctl list-unit-files | grep enabled 做例样

 

 3.systemctl list-unit-files | grep supervisord 过滤查看某服务名

 

猜你喜欢

转载自blog.csdn.net/ZeroRm/article/details/86233429