Cerrar

Video sincronizado en este capítulo: https://edu.51cto.com/sd/e4874

1.6 Apagado
1.6.1 búferes
sincronizados del sistema de archivos sincronizar [OPCIÓN]
[root @ localhost ~] # sync
1.6.2 apagado-Detener, apagar o reiniciar el
apagado de la máquina [OPCIONES ...] [HORA] [PARED. ..]
(1) Apagar inmediatamente
[root @ localhost ~] # shutdown -h now
(2) Apagar después de 10 minutos
[root @ localhost ~] # shutdown -h 10 'Me apagaré después de 10 minutos'
(3) 8pm : 25 Shutdown
[root @ localhost ~] # shutdown -h 20:25
(4) Reiniciar de inmediato
[root @ localhost ~] # shutdown -r now
(5) Solo envíe mensajes de apagado, pero realmente no cierre
[root @ localhost ~ ] # shutdown -k ahora 'Este sistema se reiniciará'
(6) Deshaga el comando de apagado que se ha emitido pero aún no se ha ejecutado
[root @ localhost ~] # shutdown -c
1.6.3 detener, apagar, reiniciar-detener, apagar o reiniciar la máquina
detener [OPCIONES ...]
poweroff [OPTIONS ...]
reiniciar [OPTIONS ...]
[root @ localhost ~] # halt
[root @ localhost ~] # reboot
[root @ localhost ~] # poweroff
1.6.4 systemctl
[root @ localhost ~] # systemctl poweroff
[root @ localhost ~] # systemctl halt
[root @ localhost ~] # systemctl reboot
1.6.5 init
[root @ localhost ~] # init 0 #Shutdown
[root @ localhost ~] # init 6
#Restart 1.6.6 Nota
[calflyok @ localhost sbit] $ shutdown -h
Debe ser root. #Nota
: 1. El comando de apagado solo puede hacerse por root.
2. Puede autorizar a otros usuarios a realizar el apagado.

Supongo que te gusta

Origin blog.51cto.com/5482173/2486435
Recomendado
Clasificación