不知道怎么回事,debian上的时间突然变成了2003年3月,改好后一重启又变回来。
#apt-get install ntpdate
#vim /etc/default/ntpdate
修改成如下
# The settings in this file are used by the program ntpdate-debian, but not
# by the upstream program ntpdate.
# Set to "yes" to take the server list from /etc/ntp.conf, from package ntp,
# so you only have to keep it in one place.
NTPDATE_USE_NTP_CONF=yes
# List of NTP servers to use (Separate multiple servers with spaces.)
# Not used if NTPDATE_USE_NTP_CONF is yes.
NTPSERVERS="133.100.11.8"
# Additional options to pass to ntpdate
NTPOPTIONS="-u"
退出保存
#ntpdate-debian
搞定。