引导和关闭 Oracle® Solaris 11.2 系统

退出打印视图

更新时间: 2014 年 7 月
 
 

如何将系统引导至多用户状态(运行级别 3)

使用此过程将当前处于运行级别 0 的系统引导至运行级别 3。将相应地注释此过程中适用于 SPARC 或 x86 平台的任何信息。

  1. 承担 root 角色。

    请参见在 Oracle Solaris 11.2 中确保用户和进程的安全 中的使用所指定的管理权限

  2. 根据平台,执行以下操作之一:
    • 对于 SPARC 平台:
      1. 使系统进入 ok PROM 提示符下。
        # init 0
      2. 将系统引导至运行级别 3。
        ok boot
    • 对于 x86 平台,请将系统重新引导至运行级别 3。
      # reboot

      引导过程会显示一系列启动消息,并使系统进入运行级别 3。有关更多信息,请参见 boot(1M)reboot(1M) 手册页。

  3. 确认系统已引导至运行级别 3。

    引导过程成功完成后,将显示登录提示。

    hostname console login:
示例 4-12  SPARC: 将系统引导至多用户状态(运行级别 3)

以下示例显示了在引导过程开始后将基于 SPARC 的系统引导至运行级别 3 时出现的消息。

ok boot
Probing system devices
Probing memory
ChassisSerialNumber FN62030249
Probing I/O buses

.
.
.
.
OpenBoot 4.30.4.a, 8192 MB memory installed, Serial #51944031.
Ethernet address 0:3:ba:18:9a:5f, Host ID: 83189a5f.
Rebooting with command: boot
Boot device: /pci@1c,600000/scsi@2/disk@0,0:a  File and args:
SunOS Release 5.11 Version 11.2 64-bit
Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved.
misc/forthdebug (455673 bytes) loaded
Hardware watchdog enabled
Hostname: portia-123
NIS domain name is solaris.example.com

portia-123 console login: NIS domain name is solaris.example.com
示例 4-13  x86: 将系统引导至多用户状态(运行级别 3)

以下示例显示了在引导过程开始后将基于 x86 的系统引导至运行级别 3 时出现的消息。由于快速重新引导功能是此发行版(在 x86 平台上)的缺省设置,因此使用 reboot 命令引导系统将对系统启动快速重新引导,这意味着将绕过 BIOS 或 UEFI 固件。另外,系统引导期间不显示 GRUB 菜单。如果需要在引导时访问系统固件或编辑 GRUB 菜单,请使用带有 –p 选项的 reboot 命令。请参见对启用了快速重新引导的系统启动标准重新引导

~# reboot
Apr 23 13:30:29 system-04 reboot: initiated by ... on /dev/console
Terminated
system-04% updating /platform/i86pc/boot_archive
updating /platform/i86pc/amd64/boot_archive

system-04 console login: syncing file systems... done
SunOS Release 5.11 Version 11.2 64-bit
Copyright (c) 1983, 2014, Oracle and/or its affiliates. All rights reserved.
Hostname: system-04

system-04 console login: <username>
Password: xxxxxx
Last login: Mon Apr 23 11:06:05 on console
Oracle Corporation      SunOS 5.11      11.2    July 2014
# who -r
		run-level 3  Apr 23 13:31     3      0  S