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

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

CentOS7.* 查询开机启动项

 

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

CentOS7.* 查询开机启动项

 

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

CentOS7.* 查询开机启动项

 

相关文章:

  • 2022-12-23
  • 2021-12-05
  • 2021-12-13
  • 2021-11-17
  • 2022-02-10
  • 2021-08-27
  • 2021-07-29
  • 2022-12-23
猜你喜欢
  • 2022-02-10
  • 2021-12-16
  • 2022-01-13
  • 2021-12-03
  • 2022-02-10
  • 2022-12-23
相关资源
相似解决方案