service ntpd stop
chkconfig ntpd off
yum -y install ntpdate
开启ntpd服务,执行下面命令:
yum -y install ntp
service ntpd start
chkconfig ntpd on
180
10 3 * * * ntpdate pool.ntp.org
crontab -e
30 3 * * * ntpdate 192.168.1.180
service crond restart
chkconfig ntpd off
yum -y install ntpdate
开启ntpd服务,执行下面命令:
yum -y install ntp
service ntpd start
chkconfig ntpd on
180
10 3 * * * ntpdate pool.ntp.org
crontab -e
30 3 * * * ntpdate 192.168.1.180
service crond restart