# shutdown -k "now"
Broadcast message from root (pts/2) (Sat Jan 10 20:09:14 2015):
The system is going down to maintenance mode NOW!
Shutdown cancelled.
ログイン後にコピー
另外登录的会话窗口会收到如下信息
[root@db-server ~]#
[root@db-server ~]#
ログイン後にコピー
Broadcast message from root (pts/2) (Sat Jan 10 20:11:34 2015):
The system is going down to maintenance mode NOW!
ログイン後にコピー
一般使用下面语法,如下所示
[root@db-server ~]# shutdown -k now "The Server will shutdown now
ログイン後にコピー
Broadcast message from root (pts/1) (Sat Jan 10 20:14:54 2015):
The Server will shutdown now
The system is going down to maintenance mode NOW!
Shutdown cancelled.
ログイン後にコピー
7:重新启动时不进行磁盘检测
[root@db-server ~]# shutdown -fr now
Broadcast message from root (pts/1) (Sat Jan 10 20:23:59 2015):
The system is going down for reboot NOW!
ログイン後にコピー
8:在多少秒后关闭系统并给用户发送提示信息
[root@db-server ~]# shutdown -t 10 -h now "System will shutdown 10 sencond later"
Broadcast message from root (pts/1) (Sat Jan 10 20:33:36 2015):
System will shutdown 10 sencond later
The system is going down for system halt NOW!