1、使用yum安装ntpdate软件包 [root@localhost ~]# yum install -y ntpdate 2、使用Liunx定时任务进行一定时间的更新 使用命令crontab -e编辑添加以下内容