1.服務器安裝ntpdate
yum install -y ntpdate
2.同步網絡時間
ntpdate time.nist.gov
(若同步失敗服務器可更換)
服務器參考列表:
time.nist.gov
time.nuri.net
0.asia.pool.ntp.org
1.asia.pool.ntp.org
2.asia.pool.ntp.org
3.asia.pool.ntp.org
3.同步時間成功後調整硬件時間
#hwclock -w
執行成功後, 查看系統硬件時間(不出意外的話,現在date和hwclock現實的時間均爲internet時間)
#date
#hwclock