Centos同步网络时间
yum -y install ntp ntpdate
#安装ntpdate工具
ntpdate cn.pool.ntp.org
#设置系统时间与网络时间同步
hwclock --systohc
#将系统时间写入硬件时间
date
#查看系统时间
只需4步即可同步网络时间,以免时差。
yum -y install ntp ntpdate
#安装ntpdate工具
ntpdate cn.pool.ntp.org
#设置系统时间与网络时间同步
hwclock --systohc
#将系统时间写入硬件时间
date
#查看系统时间
只需4步即可同步网络时间,以免时差。