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

What is the linux synchronization time command

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

Share

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

Editor to share with you what the linux synchronization time command is, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

You can use the ntpdate command. The ntpdate command sets the date and time using the Network time Protocol (NTP) and the local date and time by polling the specified NTP server that determines the correct time. It takes some samples from each specified server and applies standard NTP clock filters and selection algorithms to select the best samples.

Command format: ntpdate time server.

1. To install ntpdate, execute the following command

Yum install ntpdate-y

2. Manually synchronize network time

Ntpdate command:

Ntpdate-u 210.72.145.44: network time synchronization command

Note: if you do not add the-u parameter, the following prompt appears: no server suitable for synchronization found

-u: you can see from the man ntpdate that the-u parameter can be synchronized with the host through the firewall

210.72.145.44: the official server of China National time Service Center.

Ntp commonly used servers:

China National time Service Center: 210.72.145.44

NTP Server (Shanghai): ntp.api.bz

United States: time.nist.gov

Fudan: ntp.fudan.edu.cn

Microsoft time Service Host (USA): time.windows.com

Taiwan Police time Service Center (Taiwan): asia.pool.ntp.org

The above is all the contents of what the linux synchronization time command is, 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!

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