架构师的成长之路初片~ntp时间同步

目的:搭各种环境的时候,需要同步所有服务器的时间。避免时间上的差异造成各种损失

一、简单的本地同步

 

1:先下载ntpdate软件包

[root@centooos7_module ~]# yum provides ntpdate
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
ntpdate-4.2.6p5-29.el7.centos.x86_64 : Utility to set the date and time via NTP
Repo        : dvd



ntpdate-4.2.6p5-29.el7.centos.x86_64 : Utility to set the date and time via NTP
Repo        : @dvd

 

同步本机电脑的时间:

[root@centooos7_module ~]# ntpdate time.windows.com
3 Jul 10:09:32 ntpdate[12548]: step time server 52.231.114.183 offset -28797.372537 sec

 

 

二、使用  NTP  时间同步

链接如下地址:

https://www.cnblogs.com/ahaocloud/p/14347921.html

 

posted @ 2021-07-03 10:17  樱花泪  阅读(50)  评论(0编辑  收藏  举报