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 configures time synchronization of cluster machines in private network

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

[huiyunltd@hadoop-senior ~] $rpm-qa | grep ntp [huiyunltd@hadoop-senior ~] $sudo vim / etc/ntp.confrestrict 192.168.0 mask 255.255.252.0 nomodify notrap#server 0.centos.pool.ntp.org#server 1.centos.pool.ntp.org#server 2.centos.pool.ntp.orgserver 127.127.1.0 # local clockfudge 127.127.1.0 stratum 10 [huiyunltd@hadoop-senior ~] $sudo vim / etc/sysconfig/ntpd # Drop root to id 'ntp:ntp' by default.SYNC_HWCLOCK=yesOPTIONS= "- u ntp:ntp-p / var/run/ntpd.pid-g" [huiyunltd@hadoop-senior ~] $sudo service ntpd start [huiyunltd@hadoop-senior ~] $sudo service ntpd status [huiyunltd@hadoop-senior ~] $sudo service ntpd status [huiyunltd@hadoop-senior ~] $sudo chkconfig ntpd on [huiyunltd@hadoop-senior ~] $sudo chkconfig-- list | grep ntpdntpd 0:off 1:off 2:on 3:on 4:on 5:on 6:off [huiyunltd@hadoop-senior02 ~] $sudo crontab-e0-59 huiyunltd@hadoop-senior 10 * / usr/sbin/ntpdate hadoop-senior.huiyunltd.com [huiyunltd@hadoop-senior ~] $sudo date-s 2017-06-23 [huiyunltd@hadoop-senior ~] $sudo date-s 13:02:10

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