网络时间协议(英语:Network Time Protocol,缩写:NTP)是通过网络在不同设备间同步时间的协议。

较稳定的ntp服务器列表:

国内:
time.pool.aliyun.com
cn.pool.ntp.org
cn.ntp.org.cn

国外:
pool.ntp.org
time.apple.com
time.google.com
time.windows.com

Linux 使用 ntp 的方法:

# 安装 ntp 软件包
yum -y install ntp
# 设置开机自启动
systemctl enable ntp
# 运行 ntp
systemctl start ntp

如果需要指定优先使用自定义ntp服务器,可以在 /etc/ntp.conf 中增加以下行:

server time.pool.aliyun.com prefer


原文链接地址:http://blog.exsvc.cn/article/ntp-server-sync.html
转载请注明:转载自 易科博客 ,谢谢!

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注