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 to set synchronization scripts or commands in LINUX system time

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

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces "how to set synchronization scripts or commands in LINUX system time". In daily operation, I believe many people have doubts about how to set synchronization scripts or commands in LINUX system time. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to set synchronization scripts or commands in LINUX system time". Next, please follow the editor to study!

Command line interface operation

1. For linux system, most of them are command-line interface, so the synchronization time method of character interface is introduced first. Preferred installation of ntpdate time synchronization service, using yum install ntpdate

2. Then synchronize the linux system time to the windows time public time server, ntpdate time.windows.com

3. Set up the time synchronization script. Although the time has been synchronized above, the time will be different if you do not connect to the Internet or turn off the computer. You can synchronize at 0: 00 every day by setting scheduled tasks.

Add to crontab task file add: 00 01 * * root ntpate-s time.windows.com

4. In addition, we can also view and manually set the system time by using the date command (administrator account permissions are required.

Graphical interface settin

1. If you are not familiar with the command line, you can also use graphical interface settings to achieve system time synchronization. Find the system tool-administrator function options-date\ time and date

2. After enabling network time and synchronizing with it to find the date\ time time menu, check "synchronize date and time over the network".

3. Set the correct local time zone. In addition, the centos system will set the default time and time zone according to the current language. For the china time where the calendar is located, it is Beijing time (do not check the following UTC time)

At this point, the study on "how to set synchronization scripts or commands in LINUX system time" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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