Chinaunix首页 | 论坛 | 博客
  • 博客访问: 572785
  • 博文数量: 118
  • 博客积分: 2114
  • 博客等级: 大尉
  • 技术积分: 1275
  • 用 户 组: 普通用户
  • 注册时间: 2009-03-10 00:02
文章分类

全部博文(118)

文章存档

2019年(1)

2018年(4)

2017年(1)

2016年(6)

2015年(1)

2014年(1)

2013年(5)

2012年(4)

2011年(17)

2010年(13)

2009年(65)

分类: 系统运维

2011-08-17 13:40:11

系统运行级别有8种,分别为:  W4iLinux联盟
运行级别 意义  W4iLinux联盟
0 进入PROM状态(OK状态)  W4iLinux联盟
1 管理状态(所有文件系统都挂上的单用户模式,禁止其他用户登录)  W4iLinux联盟
2 多用户模式(没有网络文件共享服务)  W4iLinux联盟
3 多用户模式(有网络文件共享服务)  W4iLinux联盟
4 未使用  W4iLinux联盟
5 退出操作系统并关机  W4iLinux联盟
6 重新启动机器  W4iLinux联盟
S,s 单用户模式  W4iLinux联盟
init  W4iLinux联盟
init命令用于改变操作系统的运行级别。  W4iLinux联盟
命令格式:  W4iLinux联盟
init [ 0123456Ss ] 
# init 0  W4iLinux联盟
INIT: New run level: 0  W4iLinux联盟
The system is coming down. Please wait.  W4iLinux联盟
System services are now being stopped.  W4iLinux联盟
Print services stopped.  W4iLinux联盟
Stopping the syslog service.  W4iLinux联盟
syslogd: going down on signal 15  W4iLinux联盟
Aug 14 14:54:30 snmpdx: received signal 15  W4iLinux联盟
The system is down.  W4iLinux联盟
syncing file systems... done  W4iLinux联盟
Program terminated  W4iLinux联盟
Type help for more information  W4iLinux联盟
ok 
W4iLinux联盟
shutdown  W4iLinux联盟
用于改变操作系统运行级别。  W4iLinux联盟
命令格式:  W4iLinux联盟
shutdown [ -y ] [ -g seconds ] [ -i init-state ] [message] 
选项:  W4iLinux联盟
y 系统提示时默认回答为YES  W4iLinux联盟
g 过多长时间改变  W4iLinux联盟
i 想要的运行级别  W4iLinux联盟
message 给所有登录用户的信息 
# shutdown -y -g 0 -i 0  W4iLinux联盟
Shutdown started. Mon Dec 15 15:13:57 PST 1997  W4iLinux联盟
Broadcast Message from root (console) on mcmurdo Mon Dec  W4iLinux联盟
15 15:13:57...  W4iLinux联盟
THE SYSTEM IS BEING SHUT DOWN NOW ! ! !  W4iLinux联盟
Log off now or risk your files being damaged  W4iLinux联盟
Changing to init state 0 - please wait  W4iLinux联盟
ok 
W4iLinux联盟
halt  W4iLinux联盟
进入0运行级别  W4iLinux联盟
poweroff  W4iLinux联盟
关闭系统并切断电源  W4iLinux联盟
reboot  W4iLinux联盟
重新启动系统
阅读(587) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~