Linux使用ntpdate同步时间

Linux里要同步时间特别简单,使用utpdate命令就可以

CentOS可以

yum install utpdate

Ubuntu可以

sudo apt-get install ntp

同步时间

ntpdate -u time.windows.com

常用的服务器列表有以下

  • 210.72.145.44 (国家授时中心服务器IP地址)
  • ntp.sjtu.edu.cn 202.120.2.101 (上海交通大学网络中心NTP服务器地址)
  • s1a.time.edu.cn 北京邮电大学
  • s1b.time.edu.cn 清华大学
  • s1c.time.edu.cn 北京大学
  • s1d.time.edu.cn 东南大学
  • s1e.time.edu.cn 清华大学
  • s2a.time.edu.cn 清华大学
  • s2b.time.edu.cn 清华大学
  • s2c.time.edu.cn 北京邮电大学
  • s2d.time.edu.cn 西南地区网络中心
  • s2e.time.edu.cn 西北地区网络中心
  • s2f.time.edu.cn 东北地区网络中心
  • s2g.time.edu.cn 华东南地区网络中心
  • s2h.time.edu.cn 四川大学网络管理中心
  • s2j.time.edu.cn 大连理工大学网络中心
  • s2k.time.edu.cn CERNET桂林主节点
  • s2m.time.edu.cn 北京大学
分享

TITLE: Linux使用ntpdate同步时间

LINK: https://www.qttc.net/247-how-to-sync-time-on-linux.html

NOTE: 原创内容,转载请注明出自琼台博客