Linux时间同步
(1)进入 root权限 su root
(2)使用ntpdate IP(时间源IP)或service crond restart查看服务有没有开启
(3)
#crontab -e(新增一下语句)
0 */12 * * * /usr/sbin/ntpdate 172.20.9.11 >> /var/log/ntp.log 2>&1(点击Esc使用:wq保存并 退出 172.20.9.11为时间源地址)
(4)使用service crond restart重启服务
(5)hwclock -w 是将同步后的时间写入BIOS,避免重启后失效