NTP时间服务

作者: 王哲理 | 来源:发表于2018-01-06 14:13 被阅读392次

设置时区;

timedatectl set-timezone Asia/Shanghai

1.在集群中所有节点上安装ntp 

yum install ntp 

2.所有节点设置时区,这里设置为中国所用时间timedatectl set-timezone Asia/Shanghai 

3.在server节点上启动ntp服务

systemctl  start   ntpd

systemctl enable ntpd

4.在server节点上设置现在的准确时间 

timedatectl set-time HH:MM:SS 

5.在server节点上设置其ntp服务器为其自身,同时设置可以接受连接服务的客户端,是通过更改/etc/ntp.conf文件来实现的,其中server设置127.127.1.0为其自身,新增加一个restrict段为可以接受服务的网段 

6.重启ntpd服务 

systemctl restart ntpd 

7.在client节点上设置ntp服务器为server节点 

8.在client节点上同步server的时间 

ntpdate 10.107.18.35 

9.client节点启动ntpd服务

systemctl  start   ntpd  

systemctl enable ntpd

10.所有节点启动时间同步 

timedatectl set-ntp yes

免费NTP服务节点:

NTP 服务器列表

最常见、熟知的就是 www.pool.ntp.org/zone/cn,国内地址为:cn.pool.ntp.org

Windows 系统上自带的俩个:time.windows.com 和 time.nist.gov

Mac OS X 上自带的俩个:time.apple.com 和 time.asia.apple.com

一个国内无偿提供的 NTP 服务器,速度挺快,但地址池有两个 IP 已不可用,我已邮件给官方。官网:NTP授时快速域名服务,NTP 服务器:cn.ntp.org.cn

来自阿里云的 NTP 服务器: 

ntp1.aliyun.com

ntp2.aliyun.com

ntp3.aliyun.com

ntp4.aliyun.com

ntp5.aliyun.com

ntp6.aliyun.com

ntp7.aliyun.com

相关文章

  • (8)Linux_服务篇_NTP_DHCP

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

  • CentOS安装ntp时间同步服务

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

  • centos6-ntpd安装部署

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

  • centos7时间同步和时区设置

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

  • NTP时间服务

    设置时区; timedatectl set-timezone Asia/Shanghai 1.在集群中所有节点上安...

  • CentOS 配置阿里云 NTP 服务

    NTP 是网络时间协议(Network Time Protocol),NTP 服务能保证服务器的本地时间与标准时间...

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

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

  • Linux的时间服务

    1. NTP时间同步服务 1.1 实验环境说明 1) ntp-server 2)ntp-client 1.2 实验...

  • chrony时间服务器

    NTP:Network Time Protocol;网络时间协议chrony用来同步时间,来代替ntp服务,优点是...

  • 集群时间同步

    时间服务器 1)检查ntp是否安装(此处默认已经安装) $ rpm -qa | grep ntp 2)修改ntp配...

网友评论

    本文标题:NTP时间服务

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