美文网首页
NTP时间服务器配置

NTP时间服务器配置

作者: pengwg | 来源:发表于2019-11-19 11:13 被阅读0次

NTP时间服务器配置

安装chrony包

yum-yinstall chrony

修改/etc/chrony.conf配置文件

vim/etc/chrony.conf

#server 0.centos.pool.ntp.org iburst       #注释默认配置行

#server 1.centos.pool.ntp.org iburst

#server 2.centos.pool.ntp.org iburst

#server 3.centos.pool.ntp.org iburst

server10.99.82.200  iburst#新增NTP服务器配置

启动NTP服务,并设置开机自启

systemctlstartchronyd

systemctl enable chronyd

[root@auth-data01 ~]# systemctl is-enabled chronyd      #确认服务是否开机启动

enabled

查看时间同步状态

[root@auth-app02 ~]# timedatectl

Local time: Tue2019-08-0612:00:20 CST

Universal time: Tue2019-08-0604:00:20 UTC

RTC time: Tue2019-08-0603:59:14

Time zone: Asia/Shanghai (CST,+0800)

NTP enabled:yes                      #NTP服务开启

NTP synchronized:yes                      #NTP服务同步成功

RTCinlocal TZ: no

     DST active: n/a

相关文章

  • (8)Linux_服务篇_NTP_DHCP

    NTP 描述:中心时间服务器,用于局域网服务器时间同步 安装软件:ntp 1. 配置路径:vim /etc/ntp...

  • 配置集群时间同步

    配置集群时间同步: 1.时间服务器配置(必须root用户) 检查ntp是否安装 2.修改ntp配置文件 [root...

  • 第十三周

    1、搭建时间服务器,日志服务器并简述sudo安全切换 1)安装ntp服务器 yum install ntp 配置文...

  • 笔记 时间同步服务器搭建

    ntp配置 需要搭建本地的时间同步服务器(非授时)参考:1.CentOS 6 安装 NTP Server 时间服务...

  • ntp时间同步配置

    安装 ntp 修改ntp配置文件 vi /etc/ntp.conf 添加内网ntp服务器。 systemctl s...

  • centos6-ntpd安装部署

    NTPD服务端 安装NTP软件: 检查远程ntp服务器是否可用: 配置ntp服务之前,先手动同步一下时间: 编辑N...

  • linux时间同步ntp服务的安装与配置

    安装NTP(server client) Server机器修改NTP配置文件,添加NTP服务器的网络位置 vi ...

  • ntp同步局域网下的时间

    时间服务器配置 查看ntp是否安装 修改ntp配置文件 修改授权网段,使得该网段的所有机器可以查询和同步本主机的时...

  • 集群时间同步

    时间同步的方式: 配置时间同步具体实操: 时间服务器配置(必须root用户) (1)检查ntp是否安装 (2)修改...

  • NTP时间服务器配置

    NTP时间服务器配置 安装chrony包 yum-yinstall chrony 修改/etc/chrony.co...

网友评论

      本文标题:NTP时间服务器配置

      本文链接:https://www.haomeiwen.com/subject/dryhyctx.html