Linux相关关机命令及服务器关机后如何进行开机操作 |
您所在的位置:网站首页 › 服务器太热会自动关机重启吗苹果 › Linux相关关机命令及服务器关机后如何进行开机操作 |
linux一般用在服务器上,很少遇到关机的情况,毕竟关机服务就会中断,除非特殊情况不得已才会关闭。 正确的关机流程:sync>shutdown或reboot或halt 无论重启还是关机,都需要先sync将内存数据同步到硬盘中,避免数据丢失 reboot语法:reboot [ 选项] 作用:重启系统,等同于shutdown -r now 举例: [root@ljh2020 ~]# reboot poweroff语法:poweroff [选项] 作用:关闭系统 举例: [root@ljh2020 ~]# poweroff halt语法:halt [选项] 作用:关闭系统,等同于shutdown -h now和poweroff 案例: [root@ljh2020 ~]# halt shutdown语法:shutdown [选项] [关机时间] [提示内容] 作用:关机 选项: -h:关机 -r:重启 关机时间: hh:mm:指定24小时制的小时和分钟后关机 m:m分钟后关机( 1:默认值,1分钟后关机; 0:now,立刻关机) 举例: 1分钟后关机并提示所有已登录系统的用户 [root@ljh2020 ~]# shutdown -h 1 "this server will shutdown after 1min" Shutdown scheduled for Sat 2020-05-09 23:47:16 CST, use 'shutdown -c' to cancel. [root@ljh2020 ~]# Broadcast message from root@ljh2020 (Sat 2020-05-09 23:46:16 CST): this server will shutdown after 1min The system is going down for power-off at Sat 2020-05-09 23:47:16 CST! 开机操作使用关机命令以后通常需要进行开机操作 1、打开网页,登录阿里云管理控制台,发现服务器状态为“已停止”即关机了。 |
今日新闻 |
点击排行 |
|
推荐新闻 |
图片新闻 |
|
专题文章 |
CopyRight 2018-2019 实验室设备网 版权所有 win10的实时保护怎么永久关闭 |