@awsekfozc
2016-04-05T10:25:46.000000Z
字数 258
阅读 1063
CM
datetime-syns.sh
#!/bin/sh
# step 1:ntpd stop
/sbin/service ntpd stop
# step 2:sync datetime
/usr/sbin/ntpdate bigdata-cdh104.zc.com
# step 3:ntpd start
/sbin/service ntpd start
$ sudo chmod u+x datetime-syns.sh
$ sudo crontab -e
>>>内容
0-59/10 * * * * /bin/sh /opt/cloudera/datetime-syns.sh