您必须具有 console 角色 (c) 才能完成此任务。
请参见启动主机控制台。
将以下命令选项与 shutdown 命令一起使用:
-g0-将宽限期指定为 0 秒。
-i0-指定运行级别 0(等效于 init 0 命令)。
-y-预先回答确认问题,以便在无需用户干预的情况下运行该命令。
# shutdown -g0 -i0 -y Shutdown started. Mon Oct 10 20:03:04 PDT 2015 Changing to init state 0 - please wait Broadcast Message from root (console) on host-name-pd0 Mon Oct 10 20:03:04... THE SYSTEM host-name-pd0 IS BEING SHUT DOWN NOW ! ! ! Log off now or risk your files being damaged root@host-name-pd0:~# svc.startd: The system is coming down. Please wait. svc.startd: 136 system services are now being stopped. syncing file systems... done Program terminated NOTICE: Entering OpenBoot. NOTICE: Fetching Guest MD from HV. NOTICE: Starting additional cpus. NOTICE: Initializing LDC services. NOTICE: Probing PCI devices. NOTICE: Finished PCI probing. SPARC M7-8, No Keyboard Copyright (c) 1998, 2014, Oracle and/or its affiliates. All rights reserved. OpenBoot 4.37.3.build_xx, 509.5000 GB memory available, Serial #105357064. Ethernet address 0:10:e0:47:9f:14, Host ID: 12345f01. {0} ok