咨询热线:4006-75-4006

售前:9:00-23:30    备案:9:00-18:00    技术:7*24h

centos(RHEL)同步标准时间

2016-11-23 17:16:38 13006次

centos(RHEL)同步标准时间


centos(RHEL)同步标准时间


网上看到很多centos同步时间的文章写了很长,其实同步是时间是很简单的,就需要3条命令就可以搞定


使用 ntpdate 校准时间

没有安装的话,安装 ntp

#yum -y install ntp


#ntpdate time.windows.com //使用windows的服务器来同步标准时间

可以把ntpdate time.windows.com加入crontab里面定时同步


硬件时钟与系统时钟同步:

#hwclock -w

# hwclock --hctosys



或者

# clock --hctosys

 


首页
最新活动
个人中心