过滤出来需要的开机自启动项:chkconfig  --list|grep  3:on|grep  -v  "crond|sshd|network|rsyslog|sysstat" 

关闭不需要的自启动项:chkconfig  --list|grep  3:on|grep  -v  "crond|sshd|network|rsyslog|sysstat"|awk  ' {print  "chkconfig",$1,"off"} '|bash

显示最后的开机自启动项:chkconfig  --list|grep  3:on

 

相关文章:

  • 2021-10-31
  • 2021-08-15
  • 2021-09-28
  • 2022-01-07
  • 2021-08-15
  • 2022-02-16
  • 2021-04-30
猜你喜欢
  • 2021-11-24
  • 2022-12-23
  • 2022-03-07
  • 2021-12-23
  • 2022-01-15
  • 2021-09-30
  • 2021-12-07
相关资源
相似解决方案