In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to use ntpdate for time synchronization in Linux". In daily operation, I believe many people have doubts about how to use ntpdate for time synchronization in Linux. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use methods of operation. I hope it will be helpful to answer the doubt of "how to use ntpdate for time synchronization in Linux". Next, please follow the editor to study!
There are two ways for Linux to achieve time synchronization, they are: 1, use ntpdate to update time from the time server, do not need to do any configuration; 2, use ntp to build your own time server.
Linux time is divided into System Clock (system time) and Real Time Clock (hardware time, referred to as RTC).
System time: the time in the current Linux Kernel.
Hardware time: the time when there is battery power on the motherboard.
Command to view system time: # date command to set system time: # date-set (month / day / year: minutes: seconds) example: # date-set "10:15 on 10-11-10" to view hardware time: # hwclock command to set hardware time: # hwclock-set-date = (month / day / year: minutes: seconds) the above mentioned manually sets the time to a point in time There may be an error with the time of the current network. The following describes the method of time synchronization with the time server to install the ntpdate tool yum-y install ntp ntpdate to set the system time and network time synchronization ntpdate cn.pool.ntp.orgor = > ntpdate-u ntp.api.bz to write the system time into the hardware time hwclock-w4 to view the hardware time hwclock-show to this end, on the "Linux how to use ntpdate for time synchronization" learning 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.
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.