ntp 时间服务器搭建

本文介绍了在 CentOS 系统中如何搭建和配置 NTP 服务器,包括安装ntpdate和ntp服务,设置时间服务器,查看同步状态,以及解决系统时间与UTC时间不一致的问题。此外,还提到了通过cronjob定期同步时间的方法。
摘要由CSDN通过智能技术生成

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

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值