1、安装客户端(root权限运行)
apt-get install ntpdate
2、修改配置文件:“/etc/default/ntpdate”,
NTPSERVERS="ntp.fudan.edu.cn"
------完成以上操作,即可在下次开机时,自动校时------
如果不想等到下次开机,则直接用 root 用户,直接运行:ntpdate ntp.fudan.edu.cn 即可校时成功。
------国内常用NTP服务器地址及IP------
210.72.145.44 中科院
time.windows.com 微软
asia.pool.ntp.org 台湾
time.nist.gov 美国
ntp.fudan.edu.cn 复旦
timekeeper.isi.edu
subitaneous.cpsc.ucalgary.ca
usno.pa-x.dec.com
time.twc.weather.com
swisstime.ethz.ch
ntp0.fau.de
ntp3.fau.de
time-a.nist.gov
time-b.nist.gov
time-nw.nist.gov
nist1-sj.glassey.com
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 东南大学</