Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does linux shut down the server

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)05/31 Report--

Today, the editor will show you how linux shuts down the server. The knowledge points in this article are very detailed. Friends who think it is helpful can browse the content of the article with the editor, hoping to help more friends who want to solve this problem to find the answer to the problem. Let's follow the editor to learn more about "how to shut down the server in linux".

In linux, you can use the shutdown command to shut down the server, which is used to run the shutdown program and to send messages to all users' executing programs with the syntax "shutdown-h now" before shutting down.

The operating environment of this tutorial: linux7.3 system, Dell G3 computer.

How does linux shut down the server

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.

Rights of use: system administrator.

Grammar

Shutdown [- t seconds] [- rkhncfF] time [message]

Parameter description:

-t seconds: set the shutdown procedure after a few seconds.

K: it doesn't really turn off, it just sends warning messages to all users.

-r: turn it off and restart it.

-h: shut down the machine after shutdown.

-n: do not use the normal program to shut down, kill all the programs in progress by force and then shut down by yourself.

-C: cancel the shutdown that is already in progress.

-f: when shutting down, do not do fsck action (check the Linux file system).

-F: force the fsck action when shutting down.

Time: set the shutdown time.

Message: warning messages sent to all users.

Example

Turn off the computer immediately

# shutdown-h now

Specify the shutdown after 10 minutes.

# shutdown-h 10

Restart the computer

# shutdown-r now Thank you for your reading. That's all about "how to shut down the server in linux". Friends who learn it, let's get started. I believe that the editor will certainly bring you better quality articles. Thank you for your support to the website!

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report