ntp 时间服务器搭建
rpm 包 下载:
http://rpmfind.net/linux/rpm2html/search.php?query=ntpdate
https://pkgs.org/download/ntp
离线安装rpm包 文档: https://blog.csdn.net/apache2tomcat/article/details/89477732
yum 安装
yum install -y ntpdate
查看
[root@localhost ~]# rpm -qa | grep ntp
ntpdate-4.2.6p5-29.el7.centos.2.x86_64
测试是否联通服务器
[root@localhost ~]# ntpdate time.nist.gov
14 Jul 13:38:40 ntpdate[28195]: step time server 132.163.96.3 offset 0.821276 sec
每隔十分钟同步一次。推荐几个时间服务器。
国家授时中心新的NTP服务器地址:ntp.ntsc.ac.cn
time.nist.gov
time.nuri.net
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org
asia.pool.ntp.org
0.cn.pool.ntp.org
1.cn.pool.ntp.org
2.cn.pool.ntp.org
3.cn.pool.ntp.org
ntp1.aliyun.com
ntp2.aliyun.com
ntp3.aliyun.com
ntp4.aliyun.com
ntp5.aliyun.com
ntp6.aliyun.co