Centos同步网络时间

一、查看系统时间
查看系统时间的命令:

date

二、查看硬件时间
查看硬件时间的命令:

hwclock

三、时间服务器上的时间同步的方法

  1. 安装ntpdate工具
yum -y install ntp ntpdate
  1. 设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org
  1. 将系统时间写入硬件时间
hwclock --systohc
posted @ 2020-11-13 15:37  devhg  阅读(192)  评论(0编辑  收藏  举报