配置时间同步,由于内网没有时间同步服务器,以下将节点1配置为时间同步服务器,节点2同步节点1:

节点1配置成时间同步服务器:
[root@node1 /]# vi /etc/ntp.conf
erver 127.127.1.0 # local clock
fudge 127.127.1.0 stratum 11 
broadcastdelay 0.008
driftfile /var/lib/ntp/drift
启动NTP服务:
[root@node1 /]# /etc/init.d/ntpd start
Starting ntpd:                                             [  OK  ]
设置NTP 随系统启动:
[root@node1 /]# chkconfig --level 345 ntpd on
[root@node1 /]# chkconfig --list |grep ntp
ntpd            0:off 1:off 2:off 3:on 4:on 5:on 6:off

节点2配置:
[root@node2 /]# chkconfig --list |grep ntpd
ntpd            0:off 1:off 2:off 3:on 4:on 5:on 6:off
[root@node2 /]# chkconfig --level 345 ntpd off  
[root@node2 /]# chkconfig --list |grep ntpd
ntpd            0:off 1:off 2:off 3:off 4:off 5:off 6:off
[root@node2 /]# service ntpd stop
Shutting down ntpd:
[root@node2 /]# vi /etc/crontab
*/2 * * * * root /usr/sbin/ntpdate 192.168.62.240  //2分钟同步1次