首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏云计算教程系列

    CentOS 如何配置NTP加入NTP池项目

    这些服务使用网络时间协议(NTP)将系统时钟与可信外部源同步。该源可以是原子钟,GPS接收器或已经使用NTP的其他时间服务器。 这是NTP Pool Project项目发挥作用的地方。 在本教程中,您将在服务器上设置NTP并将其配置为NTP池项目的一部分,以便为NTP池项目的其他用户提供准确的时间。提供备用CPU周期和未使用的带宽是向社区提供回馈的完美方式。 选择时间服务器后,就可以配置NTP客户端来使用它们了。 第三步 - 配置NTP加入池 要将服务器与NTP池一起使用,并配置新的时间服务器,您需要对NTP守护程序的配置进行一些修改。 (5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5). 您的NTP守护程序配置文件现在应如下所示,尽管您的文件可能有其他注释,您可以放心地忽略它们: /etc/ntp.conf driftfile /var/lib/ntp/ntp.drift restrict

    3.3K00发布于 2018-08-08
  • 来自专栏力哥聊运维与云计算

    ntp配置

     ntp配置 1 安装相关文件  yum install -y ntp ntpdate 2 校准时间 ntpdate 时间服务器域名或者ip  3 将命令加入crond,确保定时运行 crontab -

    2.3K20发布于 2019-06-28
  • 来自专栏技术杂记

    NTP 升级

    @h101 tmp]# wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz --2015-11 -09 17:40:04-- http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz Resolving www.eecis.udel.edu /~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz Connecting to www.eecis.udel.edu|128.4.31.8|:443... connected /ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz.md5 --2015-11-09 17:41:56-- http://www.eecis.udel.edu/~ntp /~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p4.tar.gz.md5 Connecting to www.eecis.udel.edu|128.4.31.8|:443.

    1.2K30编辑于 2022-04-25
  • 来自专栏云深之无迹

    NTP是什么

    在安装过程中,官方文档显示.不要开启NTP,我就比较好奇.这是什么东西呢? 自1985年以来,NTP是目前仍在使用的最古老的互联网协议之一。NTP由特拉华大学的David L. Mills设计。 NTP意图将所有参与计算机的协调世界时(UTC)时间同步到几毫秒的误差内。 NTP通常可以在公共互联网保持几十毫秒的误差,并且在理想的局域网环境中可以实现超过1毫秒的精度。不对称路由和拥塞控制可能导致100毫秒(或更高)的错误。 NTP提供一个即将到来闰秒调整的警告,但不会传输有关本地时区或夏时制的信息。 NTP以1900年1月1日作为开始时间,因此第一次翻转将在2036年2月7日发生。 NTP的未来版本可能将时间表示扩展到128位:其中64位表示秒,64位表示秒的小数。

    2.5K20发布于 2020-08-11
  • 来自专栏星汉技术

    NTP服务搭建

    NTP服务搭建 如果是单独安装这个服务,请直接开始即可。如果是为了解决hadoop集群的时针偏差问题,配置ntp服务时,务必先关闭chd的相关服务。 服务的配置文件存放在/etc目录下,具体路径为:/etc/ntp.conf 首先将文件做一个备份,以防文件修改出现问题,命令如下: cp /etc/ntp.conf /etc/ntp.back.conf #将下面原有的四行注释掉 #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org cn.pool.ntp.org iburst server 2.cn.pool.ntp.org iburst server 3.cn.pool.ntp.org iburst #没有联网只需添加以下两条即可 #将以下四行注释掉 #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org

    2K20编辑于 2022-01-05
  • 来自专栏技术杂记

    NTP 升级1

    安装 详细的安装方法可以参考 安装NTP ./configure echo $? make echo $? make install echo $? Tip: echo $? 总之,安装成功后会多出以下文件 [root@h101 ntp-4.2.8p4]# ll /usr/local/bin/ntp* -rwxr-xr-x 1 root root 2630962 Nov 859156 Nov 9 19:53 /usr/local/bin/ntpdc -rwxr-xr-x 1 root root 632477 Nov 9 19:53 /usr/local/bin/ntp-keygen 3567 Nov 9 19:53 /usr/local/bin/ntptrace -rwxr-xr-x 1 root root 3207 Nov 9 19:53 /usr/local/bin/ntp-wait [root@h101 ntp-4.2.8p4]#

    1.1K40编辑于 2022-04-25
  • 来自专栏Windows技术交流

    windows ntp校时

    只要能上外网、能解析公网域名,腾讯云服务器可以配置内网NTP地址,也可以配置公网NTP地址 ① time1.tencentyun.com time2.tencentyun.com time3.tencentyun.com 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org 0.cn.pool.ntp.org 1.cn.pool.ntp.org 2.cn.pool.ntp.org /windows-time-service-tools-and-settings https://www.pool.ntp.org/zone/cn https://www.ntppool.org/zh/ ,0x8 1.pool.ntp.org,0xa 2.pool.ntp.org,0xa 3.pool.ntp.org,0xa"/syncfromflags:manual /reliable:yes /update 或 w32tm /config/manualpeerlist:"0.cn.pool.ntp.org,0x8 1.cn.pool.ntp.org,0xa 2.cn.pool.ntp.org,0xa

    4.6K10编辑于 2025-06-04
  • 来自专栏技术杂记

    NTP 升级2

    检查发现,已经是最新的版本了 [root@h101 ntp-4.2.8p4]# /usr/local/bin/ntpd --help ntpd - NTP daemon program - Ver. interval in seconds between scans for new or dropped interfaces Str var make ARG an ntp variable (RW) - may appear multiple times Str dvar make ARG an ntp variable (RW| supported: - examining environment variables named NTPD_* Please send bug reports to: <http://bugs.ntp.org , bugs@ntp.org> [root@h101 ntp-4.2.8p4]#

    1.2K30编辑于 2022-04-25
  • 来自专栏liliane随笔

    NTP服务升级

    二、准备 下载安装包 wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/ntp-4.2.8p15.tar.gz tar -zxvf ntp-4.2.8p15.tar.gz cd ntp-4.2.8p15/ 三、安装 1. 备份旧版本的配置文件 cp -ar /etc/ntp /etc/ntp.bak cp /etc/ntp.conf /etc/ntp.conf.bak cp /etc/init.d/ntpd /etc 卸载旧的ntp yum erase ntp ntpdate 4. 创建/var/lib/ntp目录 install -v -m710 -o ntp -g ntp -d /var/lib/ntp 5. /etc/ntp cp /etc/ntp.conf.bak /etc/ntp.conf 9.

    2.7K30编辑于 2023-02-16
  • 来自专栏技术杂记

    NTP 升级6

    [root@h101 ntp-4.2.8p4]# echo $? 0 [root@h101 ntp-4.2.8p4]# make ... ... [root@h101 ntp-4.2.8p4]# echo $? 0 [root@h101 ntp-4.2.8p4]# make install [root@h101 ntp-4.2.8p4]# echo $? 0 [root@h101 ntp-4.2.8p4]# [root@h101 ntp-4.2.8p4]# ll /usr/local/bin/ntp* -rwxr-xr-x 1 root root 2633989 , bugs@ntp.org> [root@h101 ntp-4.2.8p4]#

    81930编辑于 2022-04-25
  • 来自专栏技术杂记

    NTP 升级4

    检查当前运行状态 [root@h101 etc]# ps faux | grep ntp root 57457 0.5 0.0 107668 1436 pts/0 S+ 20: watch -n 4 ntpq -p root 58106 0.0 0.0 103256 828 pts/2 S+ 20:47 0:00 | \_ grep ntp ntp 57448 0.2 0.0 30736 2104 ? Ss 20:41 0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g [root@h101 etc]# 停止NTP服务 [root@h101 etc]# [root@h101 sbin]# pwd /usr/sbin [root@h101 sbin]# ll ntp* -rwxr-xr-x 1 root root 2630962 Nov 9 21:22

    91620编辑于 2022-04-25
  • 来自专栏CaiRui

    ntp服务配置

    安装NTP包 检查是否安装了ntp相关包。如果安装ntp相关包,使用rpm或者yum安装,非常简单。 el6.centos.2.i686 ntp-4.2.6p5-10.el6.centos.2.i686 NTP的配置 A.配置/etc/ntp.conf   NTP server的主要配置文件为/etc/ ntp.conf,没有修改过的ntp。 pages # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5). driftfile /var/ 文件 修改/etc/ntp/step-tickers文件,内容如下(当ntp服务启动时,会自动与该文件中记录的上层NTP服务进行时间校对) [root@localhost ~]# more /etc/ntp

    4.3K100发布于 2018-01-17
  • 来自专栏技术杂记

    NTP 升级3

    升级 当前版还是 Ver. 4.2.6p5 [root@h101 etc]# /usr/sbin/ntpd --help ntpd - NTP daemon program - Ver. 4.2.6p5 interval in seconds between scans for new or dropped interfaces var make ARG an ntp variable (RW) - may appear multiple times dvar make ARG an ntp variable (RW| supported: - examining environment variables named NTPD_* please send bug reports to: http://bugs.ntp.org , bugs@ntp.org [root@h101 etc]#

    90640编辑于 2022-04-25
  • 来自专栏iSharkFly

    Ubuntu 安装 NTP 服务

    安装 NTP 客户端 可以运行命令 sudo apt-get install ntp 来安装 NTP 客户端。 校验安装 通常在安装完某一个服务以后,我们都会校验安装。 运行下面的命令来进行校验。 配置 NTP Pool Pool 的配置文件位于 /etc/ntp.conf 文件中,这个 Pool 的用途主要是告诉 Ubuntu 的 NTP 客户端到哪里去找时间服务器。 pool 0.ubuntu.pool.ntp.org iburst pool 1.ubuntu.pool.ntp.org iburst pool 2.ubuntu.pool.ntp.org iburst pool 3.ubuntu.pool.ntp.org iburst 你可以访问地址 pool.ntp.org: NTP Servers in North America, north-america.pool.ntp.org sudo systemctl restart ntp sudo systemctl status ntp 第二个命令为查看当前 NTP 服务器的运行状态。

    4.8K00发布于 2021-06-26
  • 来自专栏运维小路

    Linux基础软件-ntp

    配置NTP 1.安装ntp软件 yum -y install ntp 2.配置ntp #默认是centos官方的ntp服务器,可以根据需要更换 vi /etc/ntp.conf #启动ntp systemctl ntp服务器,作为服务端给下游其他机器提供ntp服务。 如果我们选择作为ntp服务器的服务器,是可以通公网的,那么他只要按照服务方式启动ntp服务就可以作为ntp服务器,ntp服务是一个特殊服务,他既可作为服务端,也可以作为客户端。 其他ntp客户端机器只要把ntp.conf里面的ntp服务器地址换成我们选定的服务器就可以。 我本人也有多年维护某大厂私有云平台ntp服务的经验,如果有兴趣可以和我交流。 ntp服务是不怕故障的,ntp怕的是时间跳变。

    2.1K00编辑于 2024-11-01
  • 来自专栏技术杂记

    NTP 升级5

    . -- built without --enable-clockctl or --enable-linuxcaps or --enable-solarisprivs ntpd - NTP daemon root@h101 sbin]# vim /etc/sysconfig/ntpd [root@h101 sbin]# cat /etc/sysconfig/ntpd # Drop root to id 'ntp :ntp' by default. #OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g" OPTIONS=" -p /var/run/ntpd.pid -g" [root@h101 sbin]# [ , bugs@ntp.org> [root@h101 sbin]# [root@h101 sbin]# ps faux | grep ntp root 57457 0.5 0.0 107668

    88120编辑于 2022-04-25
  • 来自专栏技术杂记

    NTP 升级7

    :ntp' by default. OPTIONS="-u ntp:ntp -p /var/run/ntpd.pid -g" #OPTIONS=" -p /var/run/ntpd.pid -g" [root@h101 sbin]# 启动服务 root 28277 0.0 0.0 103256 828 pts/0 S+ 10:03 0:00 \_ grep ntp ntp 28273 Ssl 10:03 0:00 ntpd -u ntp:ntp -p /var/run/ntpd.pid -g [root@h101 sbin]# [root@h101 sbin]# ntpq - ) ---- 原文地址http://soft.dog/2015/11/10/ntp-upgrade/

    86030编辑于 2022-04-25
  • 来自专栏网络时间同步

    NTP校时(NTP服务器)全城智慧监控方案

    NTP校时(NTP服务器)全城智慧监控方案 优选! NTP校时(NTP服务器)全城智慧监控方案 (一)背景与挑战 过去十年,各地平安城市建设如火如荼,点位骤增,数据爆炸性增长,由此给公安业务应用带来了严峻的技术挑战和困难: 海量的监控探头每天记录下的视频是一种非结构化数据

    4K00发布于 2020-06-02
  • 来自专栏星汉技术

    NTP服务搭建 原

    如果是为了解决hadoop集群的时针偏差问题,配置ntp服务时,务必先关闭chd的相关服务。 服务的配置文件存放在/etc目录下,具体路径为:/etc/ntp.conf 首先将文件做一个备份,以防文件修改出现问题,命令如下: cp /etc/ntp.conf /etc/ntp.back.conf #将下面原有的四行注释掉 #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org cn.pool.ntp.org iburst server 2.cn.pool.ntp.org iburst server 3.cn.pool.ntp.org iburst #没有联网只需添加以下两条即可 #将以下四行注释掉 #server 0.centos.pool.ntp.org iburst #server 1.centos.pool.ntp.org iburst #server 2.centos.pool.ntp.org

    1.5K10发布于 2019-03-13
  • 来自专栏linux运维

    NTP时间同步问题

    NTP(网络时间协议)用于同步计算机系统的时间,确保所有设备的时间一致。NTP时间同步问题可能导致系统日志记录不准确、定时任务失败等问题。以下是一些诊断和解决NTP时间同步问题的方法:1. 检查NTP服务状态确保NTP服务正在运行。 安装NTP服务如果NTP服务未安装,可以使用以下命令安装: sudo apt-get install ntp # 对于Debian/Ubuntu系统 sudo yum install ntp # 对于CentOS 配置NTP服务器编辑NTP配置文件 /etc/ntp.conf 或 /etc/chrony/chrony.conf ,添加或修改NTP服务器。 示例配置:/etc/ntp.conf server 0.pool.ntp.org server 1.pool.ntp.org server 2.pool.ntp.org server 3.pool.ntp.org

    3.4K10编辑于 2025-02-03
领券