改变Solaris 系统运行级别 init

番茄系统家园 · 2022-07-14 12:09:33

运行级别有8种,分别为: 

运行级别 意义 
0 进入PROM状态(OK状态) 
1 管理状态(所有文件都挂上的单用户模式,禁止其他用户登录) 
2 多用户模式(没有文件共享) 
3 多用户模式(有文件共享) 
4 未使用 
5 退出并关机 
6 重新启动机器 
S,s 单用户模式 
init 
init命令用于改变的运行级别。 
命令格式: 
init [ 0123456Ss ] 

init 0 

INIT: New run level: 0 
The system is coming down. Please wait. 
System services are now being stopped. 
Print services stopped. 
Stopping the syslog service. 
syslogd: going down on signal 15 
Aug 14 14:54:30 snmpdx: received signal 15 
The system is down. 
syncing file systems... done 
Program terminated 
Type help for more information 
ok 


shutdown 
用于改变运行级别。 
命令格式: 
shutdown [ -y ] [ -g seconds ] [ -i init-state ] [message] 

选项: 
y 提示时默认回答为YES 
g 过多长时间改变 
i 想要的运行级别 
message 给所有登录用户的信息 

shutdown -y -g 0 -i 0 

Shutdown started. Mon Dec 15 15:13:57 PST 1997 
Broadcast Message from root (console) on mcmurdo Mon Dec 
15 15:13:57... 
THE SYSTEM IS BEING SHUT DOWN NOW ! ! ! 
Log off now or risk your files being damaged 
Changing to init state 0 - please wait 
ok 


halt 
进入0运行级别 
poweroff 
关闭并切断电源 
reboot 
重新启动 

免责声明: 凡标注转载/编译字样内容并非本站原创,转载目的在于传递更多信息,并不代表本网赞同其观点和对其真实性负责。如果你觉得本文好,欢迎推荐给朋友阅读;本文链接: https://m.nndssk.com/xtwt/206584qaRIUj.html
猜你喜欢
最新应用
热门应用