首页 > 其他 > 详细

ntp时间服务器

时间:2020-07-21 12:50:32      阅读:87      评论:0      收藏:0      [点我收藏+]

# NTP时间同步服务器

## 1.1 NTP 简介

NTP( Network Time Protocol,网络时间协议)是用来使网络中的各个计算机时间同步的一种协

议。它的用途是把计算机的时钟同步到世界协调时 UTC,其精度在局域网内可达 0.1ms,在互联

网上绝大多数的地方其精度可以达到 1-50ms。

NTP 服务器就是利用 NTP 协议提供时间同步服务的。

 

**NTP服务端: c701 10.0.0.41**

**NTP客户端: c702 10.0.0.42**

### 1.1.2 NTP服务器安装

```shell
yum -y install ntp
```

 

### 1.1.3 配置NTP服务

```shell
vim /etc/ntp.conf

# restrict default kod nomodify notrap nopeer noquery
# nomodify客户端可以同步
restrict default nomodify


# 将默认时间同步源注释改用可用源
# 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
server ntp1.aliyun.com
```

ntp时间服务器

原文:https://www.cnblogs.com/fatzi/p/13353480.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!