1、安装rpm包
rpm -ivh autogen-libopts-5.18-5.el7.x86_64.rpm
rpm -ivh ntp-4.2.6p5-28.el7.centos.x86_64.rpm
rpm -ivh ntpdate-4.2.6p5-28.el7.centos.x86_64.rpm
2、设置server的时间
timedatectl set-ntp no
timedatectl set-time "2020-06-18 10:24:00"
timedatectl set-timezone UTC
clock -w
3、NTP SERVER (192.168.2.14)配置:
1)vi /etc/ntp.conf
restrict 192.168.2.14 mask 255.255.255.0 nomodify notrap # 允许内网其他机器同步时间
server 127.127.1.0 # 外部时间服务器不可用时,以本地时间作为时间服务
fudge 127.127.1.0 stratum 10
2)重启服务
service ntpd restart
systemctl disable chronyd.service
systemctl enable ntpd.service
ntpstat
systemctl status ntpd.service
4、NTP Client (192.168.2.13)配置:
1)vi /etc/ntp.conf
server 192.168.2.14 #<--该IP是NTP主机端的IP
restrict 192.168.2.14 nomodify notrap noquery # 允许上层时间服务器主动修改本机时间
2)重启服务
ntpdate -u 192.168.2.14
service ntpd restart
systemctl disable chronyd.service
systemctl enable ntpd.service
ntpstat

春风野草
- 粉丝: 3
最新资源
- springboot-基于BS的社区物业管理系统(源码+sql脚本).zip
- tencentcloud-iot-sdk-embedded-c-master.zip
- 初学者指南:18um工艺下Bandgap带隙基准电压与参考电路设计及仿真技巧
- springboot-基于java的校园服务平台(源码+sql脚本).zip
- 电驱动车辆主动前轮转向(AFS)与主动后轮转向(ARS)的仿真搭建与LQR控制方法设计 仿真建模 终极版
- 一维CNN迁移学习在轴承故障诊断中的应用:基于PyTorch的域适应联合对齐实践
- linux-headers-6.14.0-24-6.14.0-24.24-all.deb
- GD32F470 RT-thread 4.1.1 修改带有dma接收的驱动
- linux-headers-6.14.0-24-generic-6.14.0-24.24-amd64.deb
- linux-image-6.14.0-24-generic-6.14.0-24.24-amd64.deb
- 同步旋转坐标系下无位置传感器永磁同步电机控制:三相电压重构技术及其MATLAB实现
- 4.19.191.ko
- 基于Matlab的计算机视觉单指针百分数表盘识别系统:霍夫变换与GUI设计
- ### 苏州华芯微电子股份有限公司射频产品介绍
- linux-modules-6.14.0-24-generic-6.14.0-24.24-amd64.deb
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈



评论0