linux学习笔记之关机问题
2017-11-16 22:25
253 查看
在linux领域内大多用在服务器上,很少遇到关机的操作。
正确的关机流程为:sync > shutdown > reboot > halt
关机指令为:shutdown ,你可以man shutdown 来看一下帮助文档。
不管是重启系统还是关闭系统,首先要运行 sync 命令,把内存中的数据写到磁盘中。
关机的命令有 shutdown –h now halt poweroff 和 init 0 , 重启系统的命令有 shutdown –r now reboot init 6。
正确的关机流程为:sync > shutdown > reboot > halt
关机指令为:shutdown ,你可以man shutdown 来看一下帮助文档。
sync 将数据由内存同步到硬盘中。 shutdown 关机指令,你可以man shutdown 来看一下帮助文档。例如你可以运行如下命令关机: shutdown –h 10 ‘This server will shutdown after 10 mins’ 这个命令告诉大家,计算机将在10分钟后关机,并且会显示在登陆用户的当前屏幕中。 Shutdown –h now 立马关机 Shutdown –h 20:25 系统会在今天20:25关机 Shutdown –h +10 十分钟后关机 Shutdown –r now 系统立马重启 Shutdown –r +10 系统十分钟后重启 reboot 就是重启,等同于 shutdown –r now halt 关闭系统,等同于shutdown –h now 和 poweroff
不管是重启系统还是关闭系统,首先要运行 sync 命令,把内存中的数据写到磁盘中。
关机的命令有 shutdown –h now halt poweroff 和 init 0 , 重启系统的命令有 shutdown –r now reboot init 6。
相关文章推荐
- 记一次MongoDB性能问题+Linux内存管理学习笔记--物理内存分配
- linux学习笔记(六) linux关机命令
- 修改阿里云MySQL密码的问题---Linux学习笔记(4)
- Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- Linux 学习笔记 (四)Ubuntu14.04 解决上网问题安装无线网卡驱动
- linux几种关机方法---学习笔记
- Linux学习笔记之网络通信命令、系统关机、sehll应用技巧....
- 【Linux学习笔记】一、Linux 时间问题
- R语言学习笔记之<在Linux上遇到的问题集锦>
- Linux学习笔记_内存释放问题
- Linux学习笔记之RedHat Enterprise Linux 6.4 使用 Centos 6 的yum源问题
- linux学习笔记--常见问题解决方法
- linux学习笔记-2:第一个问题
- Linux学习笔记(十三、关机和重启命令)
- [linux学习笔记] GCC环境安装问题
- 【linux系统学习笔记】运行startx后Ubuntu密码正确进不去的问题
- 【学习笔记——Linux】Linux下正确关机方法
- R语言学习笔记之<在Linux上遇到的问题集锦>
- Linux 学习笔记(二)启动与关机
- linux学习笔记—关机与重启命令