Chinaunix首页 | 论坛 | 博客
  • 博客访问: 353895
  • 博文数量: 49
  • 博客积分: 817
  • 博客等级: 军士长
  • 技术积分: 496
  • 用 户 组: 普通用户
  • 注册时间: 2011-01-16 19:05
文章分类

全部博文(49)

文章存档

2014年(6)

2013年(7)

2012年(8)

2011年(28)

分类: SOLARIS

2013-11-20 21:21:08

安全关机一般使用 shutdown,如shutdown -y -g0 -i0
参数:
    -y    自动应答请求,不需要人工干预
    -g    后接秒数,定义关机延迟的时间,0为立即
    -r    重启,相当于i6
    -i    定义关机状态,有如下几种:

0 (也就是我们俗称的 ok mode, 不会power off) 
Go into firmware. 


Put the system in system administrator mode. All local file systems are mounted. Only a small set of essential kernel processes are left running. This mode is for administrative tasks such as installing optional utility packages. All files are accessible and no users are logged in on the system.


Put the system in multi-user mode. All multi-user environment terminal processes and daemons are spawned. This state is commonly referred to as the multi-user state.


Extend multi-user mode by making local resources available over the network.


Is available to be defined as an alternative multi-user environment configuration. It is not necessary for system operation and is usually not used.

5 (关机,power off)
Shut the machine down so that it is safe to remove the power. Have the machine remove power, if possible.

6 (reboot 重启) 
Stop the operating system and reboot to the state defined by the initdefault entry in /etc/inittab

S, s 
Enter single-user mode.
阅读(839) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~