1查看服务器、客户端操作系统版本

2查看服务器是否安装ntp

3如果没有安装

4安装完成后重新查看服务器是否安装ntp

5查看ntp服务器状态

6修改配置文件

注释
#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 127.127.1.0 iburst
7启动ntp服务

8查看状态

9查看是否同步

10加入开机自启动

11查看防火墙状态(本人日常需要部署程序,防火墙关闭)

12查看防火墙已打开端口











