- 论坛徽章:
- 0
|
系统运行级别有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联盟
重新启动系统
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12679/showart_434264.html |
|