In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Chapter 1 introduction to building 1.1ntp for ntp time server
NTP (NetworkTime Protocol, Network time Protocol) is a protocol used to synchronize the time of various computers in the network. Its purpose is to synchronize the computer clock to UTC UTC. Its accuracy can reach 0.1ms in the local area network and 1-50ms in most places on the Internet.
NTP server uses NTP protocol to provide time synchronization service.
1.2NTP server installation 1. # the system comes with ntp2. [root@oldboyedu] # rpm-qa ntp3. Ntp-4.2.6p5-5.el6.centos.x86_644. # if not, install 5. Yum-y install ntp1.3 configure ntp time server
[root@oldboyedu ~] # vim/etc/ntp.conf
# restrict default kod nomodifynotrap nopeer noquery
Restrict default nomodify
# nomodify clients can synchronize
# change the default time synchronization source annotation to an available source
# server 0.centos.pool.ntp.orgiburst
# server 1.centos.pool.ntp.orgiburst
# server 2.centos.pool.ntp.orgiburst
# server 3.centos.pool.ntp.orgiburst
Server ntp1.aliyun.com
Server time.nist.gov
Start the NTP server
[root@oldboyedu ~] # / etc/init.d/ntpdstart
Starting ntpd: [OK]
[root@oldboyedu] # ntpq-p
Remote refid st t when poll reach delay offset jitter
=
* ntp1.aliyun.com 10.137.38.86 2 u 22 64 1 525.885-42.367 0.000
[root@oldboyedu ~] # ntpstat
Synchronised to NTP server (110.75.186.247) at stratum 3
Time correct to within 4257 ms
Polling server every 64 s
[root@oldboyedu ~] # ntpdate10.0.0.9
7 Dec 18:43:07 ntpdate [26950]: the NTP socketis in use, exiting
1.4 client time synchronization
The client will have to wait a few minutes before synchronizing with the newly started ntp server, otherwise it will prompt a no serversuitable for synchronization found error.
[root@zyops ~] # ntpdate 10.0.0.9
7 Dec 18:40:16 ntpdate [1453]: step time server10.0.0.9 offset 40.880807 sec
# just put the command into the scheduled task.
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.