shutdown、reboot开关机规范实操

📅 2026/7/31 14:54:16 👁️ 阅读次数 📝 编程学习
shutdown、reboot开关机规范实操

shutdown、reboot开关机规范实操

一、实验目的

掌握Linux正规关机、重启命令,规范服务器开关机操作。

二、实验环境

CentOS7.9系统

三、操作步骤

  1. 立即重启服务器

Bash
reboot

  1. 立即关机

Bash
shutdown -h now

  1. 定时10分钟后关机

Bash
shutdown -h 10

四、结果验证

服务器正常执行重启、关机任务。