linux主机时间同步

yum -y install ntpdate ntp && ntpdate cn.pool.ntp.org
systemctl start ntpd.service && systemctl enable ntpd.service
# crontab -l
*/5 * * * * /usr/sbin/ntpdate ntp3.aliyun.com >/dev/null 2>&1 
posted @ 2020-07-07 15:40  哈喽哈喽111111  阅读(210)  评论(0编辑  收藏  举报