yum -y install ntpdate
cp /etc/localtime /etc/localtime.bak
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
ntpdate cn.pool.ntp.org
或者
/usr/sbin/ntpdate 182.92.12.11
crontab -e
*/5 * * * * /usr/sbin/ntpdate time.windows.com >/dev/null 2>&1 |
cat /var/spool/mail/root
data -R
6.写入BIOS
hwclock -w
或
clock -w