Linux重启命令init 6和reboot的区别
来源:互联网 发布:windows连不上sens 编辑:程序博客网 时间:2024/04/29 09:43
init命令用于改变操作系统的运行级别。
Init 6是重新启动机器。
reboot也是重新启动机器。
那么这两个命令到底有什么区别呢?
对这两个操作使用man命令看到的内容如下:
init 6 Stop the operating system and reboot to the state defined by the initdefault entry in /etc/inittab.
reboot – reboot performs a sync(1M) operation on the disks, and then a
multi- user reboot is initiated. See init(1M) for details.
“init 6″ 基于一系列/etc/inittab文件,并且每个应用都会有一个相应shutdown脚本。
‘init 6′ 调用一系列shutdown脚本(/etc/rc0.d/K*)来使系统优雅关机;
‘reboot’并不执行这些过程,reboot更是一个kernel级别的命令,不对应用使用shutdown脚本。 .
所以我们应该在通常情况下使用 init 6.
在出问题的状况下或强制重启时使用reboot.
reboot is a more aggresive command to use. init 6 is much graceful
use of `init 6` will give the cleanest and orderly reboot (init informs svc.startd of the runlevel change and will move to the appropriate milestone).
use of `shutdown -y -g0 -i6 **message**` will invoke init as well as give you grace period and messages to user (shutdown invoked the same as init above).
halt,reboot,poweroff will not run any of the shutdown scripts and should be last resort.
Init 6是重新启动机器。
reboot也是重新启动机器。
那么这两个命令到底有什么区别呢?
对这两个操作使用man命令看到的内容如下:
init 6 Stop the operating system and reboot to the state defined by the initdefault entry in /etc/inittab.
reboot – reboot performs a sync(1M) operation on the disks, and then a
multi- user reboot is initiated. See init(1M) for details.
“init 6″ 基于一系列/etc/inittab文件,并且每个应用都会有一个相应shutdown脚本。
‘init 6′ 调用一系列shutdown脚本(/etc/rc0.d/K*)来使系统优雅关机;
‘reboot’并不执行这些过程,reboot更是一个kernel级别的命令,不对应用使用shutdown脚本。 .
所以我们应该在通常情况下使用 init 6.
在出问题的状况下或强制重启时使用reboot.
reboot is a more aggresive command to use. init 6 is much graceful
use of `init 6` will give the cleanest and orderly reboot (init informs svc.startd of the runlevel change and will move to the appropriate milestone).
use of `shutdown -y -g0 -i6 **message**` will invoke init as well as give you grace period and messages to user (shutdown invoked the same as init above).
halt,reboot,poweroff will not run any of the shutdown scripts and should be last resort.
- Linux重启命令init 6和reboot的区别
- linux 下 reboot和init 6的区别
- Linux常用关机重启命令shutdown\halt\reboot\init
- Linux 关机重启命令 shutdown reboot init
- init 6和reboot的区别
- reboot和init 6的区别
- reboot和init 6之间的区别
- reboot和init 6之间的区别
- 【LINUX】Linux 关机/重启 shutdown、halt、reboot和init
- linux下常用的关机/重启命令shutdown、halt、reboot、init
- linux下常用的关机/重启命令shutdown、halt、reboot、init
- linux 关机重启 shutdown和reboot的区别
- Linux重启命令reboot
- 【转载】关于shutdown halt reboot poweroff init 0几种关机和重启命令的理解
- Linux/Unix关机、重启(shutdown\reboot\halt\init)等命令
- Reboot与init 6的区别
- init 6与 reboot的区别
- linux常用关机命令及其区别-Shutdown halt reboot init
- Oracle安全 - SCN的可能最大值与耗尽问题
- jquery and js
- sqlserver grant 语句
- 指针函数与函数指针的区别
- HDU 2527 Safe Or Unsafe (哈夫曼树)
- Linux重启命令init 6和reboot的区别
- 最简单的CI框架入门示例--数据库取数据
- 原地归并排序
- 行为识别特征提取综述
- Android之基于HTTP协议的下载
- warning LNK4086: 入口点“_WinMainCRTStartup”不是带有 12 字节参数的 __stdcall;映像可能不能运行
- profiler必须要simulator么?
- 小羊驼和你一起学习cocos2d-x与lua之五(lua编写cocos2d-x游戏)
- linux下C内嵌汇编代码