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

Ntp time synchronization

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Due to hardware reasons, the root standard time of the machine does not match more or less, and the error of a month ranges from a few seconds to a few minutes. For the server, the time is not right, there will be a lot of trouble. For example, when paying, the order cannot be placed, the game cannot log in, and so on. It doesn't matter if you use your own PC, just change it manually.

You can use the hwclock or clock command to set the hardware time. Among them, the use of clock and hwclock is similar, only one can be used, but the clock command supports not only x86 hardware architecture, but also Alpha hardware architecture.

/ / hardware time can be checked using hwclock,hwclock-- show or hwclock-r

[root@localhost] # hwclock-- show

Friday, December 12, 2008 06:52:07-0.376932 seconds

three。 Synchronization of system time and hardware time

To synchronize system time and hardware time, you can use the hwclock command.

/ / modify the hardware time based on the system time

[root@localhost] # hwclock-- systohc

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