每日一篇大数据

配置集群时间同步

2018-10-29  本文已影响16人  sixleaves

配置集群时间同步:

1.时间服务器配置(必须root用户)

[root@hadoop102 桌面]# rpm -qa|grep ntp
ntp-4.2.6p5-10.el6.centos.x86_64
fontpackages-filesystem-1.41-1.1.el6.noarch
ntpdate-4.2.6p5-10.el6.centos.x86_64

2.修改ntp配置文件

[root@hadoop102 桌面]# vim /etc/ntp.conf
修改内容如下

#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap为
restrict 192.168.176.0 mask 255.255.255.0 nomodify notrap
server 0.centos.pool.ntp.org iburst
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst为
#server 0.centos.pool.ntp.org iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server 127.127.1.0
fudge 127.127.1.0 stratum 10

3.修改/etc/sysconfig/ntpd 文件

4.其他机器配置(必须root用户)

上一篇 下一篇

猜你喜欢

热点阅读