美文网首页
centos7安装配置ntp时间同步

centos7安装配置ntp时间同步

作者: 彩色的炮灰 | 来源:发表于2023-07-18 10:17 被阅读0次

三台服务器,其中一台作为ntp服务器端,另外两台作为ntp客户端
1、安装ntp,每台服务器都需要安装ntp
yum -y install ntp

2、配置ntp服务端,编辑/etc/ntp.conf文件
vim /etc/ntp.conf
在/etc/ntp.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

在/etc/ntp.conf中新增以下部分。

server 127.127.1.0
fudge 127.127.1.0 stratum 10

3、启动并设置开机自启

systemctl start ntpd
systemctl enable ntpd

4、查看ntp服务状态
systemctl status ntpd

`

5、查看ntp状态

ntpstat


image.png

相关文章

  • CentOS安装ntp时间同步服务

    CentOS安装ntp时间同步服务 安装ntp 服务端配置 配置文件路径:/etc/ntp.conf [图片上传失...

  • centos7时间同步和时区设置

    centos7时间同步和时区设置 安装ntp服务的软件包 sudo yum install ntp 将ntp服务设...

  • 使用NTP时间同步

    安装ntp 1.安装软件 2.配置ntp启动项 3.同步时间 4.启动ntpd服务 配置时间源 配置是否为其他PC...

  • ubuntu 下ntp sever 安装及配置

    安装sudo apt-get install ntp 配置成和本机同步时间 重启service ntp resta...

  • 配置集群时间同步

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

  • (8)Linux_服务篇_NTP_DHCP

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

  • 集群时间同步

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

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

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

  • centos6-ntpd安装部署

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

  • linux时间同步

    安装ntp 同步时间 写入硬件

网友评论

      本文标题:centos7安装配置ntp时间同步

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