yum install ntpdate -y 安装时间同步工具
ntpdate ntp.ntsc.ac.cn 同步时间
crontab -l 列出定时任务
crontab -e 创建一个定时任务
定时任务参数,同步整点时间
0 * * * * /usr/sbin/ntpdate ntp.ntsc.ac.cn >> /tmp/autontpdate 2>&1
yum install ntpdate -y 安装时间同步工具
ntpdate ntp.ntsc.ac.cn 同步时间
crontab -l 列出定时任务
crontab -e 创建一个定时任务
定时任务参数,同步整点时间
0 * * * * /usr/sbin/ntpdate ntp.ntsc.ac.cn >> /tmp/autontpdate 2>&1