Linux 实现服务器之间时间同步

在主服务器上安装NTP时间同步服务器

yum -y install ntp

vim /etc/ntp.conf  手动添加两行

server 127.127.1.0

fudge 127.127.1.0 startum 8

启动服务、/etc/init.d/ntpd start

chkconfig ntpd on

在客户端安装ntpdate

yum -y install ntpdate

ntpdate masterIP

结束。。。。。。。。。。。。

原文地址:https://www.cnblogs.com/haoge92/p/9322386.html