In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article shows you what the Linux system synchronization time command is, the content is concise and easy to understand, can definitely brighten your eyes, through the detailed introduction of this article, I hope you can get something.
When we build clusters in Linux systems, especially in distributed systems, time is a very important factor, such as HBASE, ensure time consistency, otherwise hmaster will not be aware of Hregionserver) so how to synchronize time in Linux systems?
Date command:
Date looks at the current time and the results are as follows: Friday, January 6, 2017, 13:02:55 CST
Date-s 14:03:35 sets the current time, and the results are as follows: Friday, January 6, 2017, 14:03:35 CST
Date-s 2017-01-08 sets the current date, and the results are as follows: Friday, January 8, 2017, 00:00:00 CST
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
After testing that the Chinese National time Service Center and the NTP Shanghai server can synchronize the time normally, note that you need to add the-u parameter!
The above content is what is the command of Linux system synchronization time? have you learned the knowledge or skills? If you want to learn more skills or enrich your knowledge reserve, you are 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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.