您现在的位置: 万盛学电脑网 >> 程序编程 >> 服务器教程 >> 正文

linux系统中ntpdate同步网络日期时间

作者:佚名    责任编辑:admin    更新时间:2022-06-22

   命令:

  # ntpdate ip (同步时间服务器ip)

  #hwclock -w //将时间写入硬件

  例子

  ntpdate 210.167.182.10

  同步时间服务器:

  server

  ntp-sop.inria.frserver 210.72.145.44(中国国家授时中心服务器IP地址)

  server ntp.sjtu.edu.cn(上海交通大学网络中心NTP服务器地址)