????????????LINUX?????
??????linux??????????
????ntpdate ntp_server_ip
????????????????????????????????????????????????cron?????????3???????
????crontab –e
???????????
????0 3 * * * /usr/sbin/ntpdate 192.168.0.179
??????????????
????1???????
????ntp server
????wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.6.tar.gz tar zxvf ntp-4.2.6.tar.gz
????cd ntp-4.2.6
????./configure --prefix=/usr/local/ntp --enable-all-clocks --enable-parse-clocks make && make install
??????????????????????????????NTP????????????http://support.ntp.org/bin/view/Main/SoftwareDownloads?????????????
????2?????ntp.conf???????
????vi /etc/ntp.conf
???????????????????κ?IP????????????????????? ??
????restrict default kod nomodify notrap nopeer noquery
?????????????
????restrict default nomodify
????????????????/etc/ntp.conf
???????????????????192.168.18.***???ε?????????????????
????restrict default nomodify notrap noquery??????????????IP??????????
?????????????У?
????restrict 192.168.18.0 mask 255.255.255.0 nomodify
????????????????/etc/ntp.conf
????3??????????????
????ntpd /usr/local/ntp/bin/ntpd -c /etc/ntp.conf -p /tmp/ntpd.pid
????4??ntpd???????????????????????????????????????????“no server suitable for synchronization found”????
???????????????????????
????vi /var/spool/cron/root
??????????У???????5??13???9??13???14??13???19??13???????????????????????
????13 5??9??14??19 * * * /usr/sbin/ntpdate 192.168.18.2
????????????????????ntpdate??????????ntpdate.tar.gz??/usr/sbin/??????????? wget http://blog.s135.com/attachment/200708/ntdate.tar.gz cd /usr/sbin/ tar zxvf ntpdate.tar.gz