In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to use shutdown to shut down under CentOS". Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn "how to use shutdown to shut down under CentOS"!
The Linux shutdown command can be used to perform shutdown procedures and to send messages to all users' running programs before shutting down, and shutdown can also be used to restart.
After executing the command shutdown-h 10 'System will shutdown in 10 minitus,please save your fileholders After that, the system tells you that the machine will be shut down in ten minutes! And the information will be repeatedly displayed on the user's screen! Within 10 minutes, the system administrator can type shutdown-c to cancel the shutdown command. The following figure shows
If you do not add any parameters when you execute the shutdown command, after executing the shutdown command directly, the system will shut down after 1 minute by default!
Shutdown-h now shuts down immediately, which is equivalent to shutdown-h 0
Shutdown-h 23:00 the system shuts down at 23:00. If you execute this command at 23:00, the system will shut down at 23:00 the next day.
The shutdown-h + 10 system will shut down automatically in ten minutes.
The shutdown-r now system restarts immediately
Shutdown-r + 10 'Warningstones! The system will reboot in 10 minitues' the system will restart in ten minutes, and the alarm message will be displayed to all users who are logging in.
The reboot command can play the same role as shutdown-r. It is recommended that you execute the data write command sync several times before executing the reboot command to ensure that the data is written to disk synchronously.
The difference between the shutdown command halt, poweroff and shutdown
The shutdown command sends a signal to the init program to change the run level runlevel to 0, and init 0 calls halt or poweroff after operations such as writing data to disk. On systems without acpi management, halt only shuts down the operating system, the host is still powered on, and you need to manually press the power button to power off, and poweroff will send a power off signal to acpi. In CentOS 7, systemd is used for service management, and there is no difference between the three commands, because halt, poweroff, and shutdown are all symbolic links to / bin/systemctl, as shown in the following figure. So, you just need to choose one of the commands according to your usage habits.
At this point, I believe you have a deeper understanding of "how to use shutdown shutdown under CentOS". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.