网络时间同步(Centos)

  1. 安装ntpdate工具
yum -y install ntp ntpdate
  1. 设置系统时间与网络时间同步
ntpdate cn.pool.ntp.org
或
ntpdate ntp.api.bz
  1. 将系统时间写入硬件时间
hwclock w

4.查看硬件时

hwclock -show
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章