Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize the batch processing of restarting the server on time every day

Shulou Source: shulou.com Published: 2022-06-03 08:15:28 11月15日 Update

This article mainly shows you "how to realize the batch processing of restarting the server on time every day". The content is easy to understand and clear. I hope it can help you solve your doubts. Let the editor lead you to study and learn the article "how to restart the server on time every day".

Do the following:

1. Let's write a batch file first

Reference content

The code is as follows:

At 4:10 shutdown-r-f

Is to let the server restart at 4:10. Save the above file as a rebot.bat file

2. In the control panel

Find the task plan-add the task plan-next-- browse the rebot.bat file you just wrote-choose to execute this task every day-then enter the time to start execution each day, which is only slightly earlier than the time in rebot.bat-fill in the administrator password.

That's it.

The above is all the contents of the article "how to restart the server on time every day". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Server service content file task time article learning help code password that is easy to understand more organization knowledge administrator editing industry information Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Redmi Huawei Microsoft vpn