A command processing method:
. 1) Ntsysv
2) Setup-System-Service
. 3) a key to complete the processing script
We deal with the script
We need to turn
to start at 4 service
crond - timed task
network - network service
rsyslog - system logging
sshd - this is to allow the remote link service
chkconfig --list | grep "3: Enable" to see what service start msconfig in similar window
for value in chkconfig --list|grep "3:启用"|awk '{print $1}'
;do chkconfig $value off;done
chkconfig --list|grep "3:启用"
for value in crond network sshd rsyslog;do chkconfig $value on;done
chkconfig --list|grep "3:启用"
We can also use a single command to achieve
for value in chkconfig --list|grep "3:on"|awk '{print $1}' | grep -vE "crond|network|sshd|rsyslog"
;do chkconfig $value off;done
grep -v is ruled out one more can be added to E, but starting a vertical bar (|) stitching
-i ignore case is to filter out