使用root用户每5分钟执行一次时间同步
yum install -y ntpdate
0 12 * * * * /sbin/ntpdate ntpl.aliyun.com & >/dev/null #同步时间
yum install -y ntpdate
0 12 * * * * /sbin/ntpdate ntpl.aliyun.com & >/dev/null #同步时间
本文来自博客园,作者:孙龙-程序员,转载请注明原文链接:https://www.cnblogs.com/sunlong88/p/16694273.html