介绍
参考wikipedia:Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks。
参考百度百科:NTP是网络时间协议(Network Time Protocol),它是用来同步网络中各个计算机的时间的协议。
环境
2台Centos 7
- 1个用作NTP服务端:192.168.1.101
- 1个用作NTP客户端:192.168.1.102
系统版本均如下:
[root@localhost ~]# cat /etc/redhat-release
CentOS Linux release 7.1.1503 (Core
安装
- 执行命令
yum -y install ntp
- 查看安装后的服务: (ntp的服务名称是ntpd。)