Linux的NTP配置总结————————————————————————————————作者:————————————————————————————————日期: Linux的NTP配置总结2015-08-2012:29by潇湘隐者, 4678 阅读, 2 评论, 收藏, 编辑在Linux系统中,为了避免主机时间因为在长时间运行下所导致的时间偏差,进行时间同步(synchronize)的工作是非常必要的。Linux系统下,一般使用ntp服务来同步不同机器的时间。workTimeProtocol)的简称,干嘛用的呢?就是通过网络协议使计算机之间的时间同步化。 安装NTP包检查是否安装了ntp相关包。如果没有安装ntp相关包,使用rpm或yum安装,安装也非常简单方便。[******@localhost~]# rpm-qa|grepntpntpdate---filesystem---- NTP的配置 A:配置/etc/,,配置选项都有相关注释信息()[******@localhost~]#more/etc/#Formoreinformationaboutthisfile,seethemanpages#(5),(5),ntp_auth(5),ntp_clock(5),ntp_misc(5),ntp_mon(5). driftfile/var/lib/ntp/drift #Permittimesynchronizationwithourtimesource,butdonot#-6defaultkodnomodifynotrapnopeernoquery #essovertheloopbackinterface. Thiscould#betightenedaswell,buttodosowouldeffectsomeof#-6::1 #workarelessrestricted.# #.#Pleaseconsiderjoiningthepool(/). #
Linux的NTP配置总结 来自淘豆网m.daumloan.com转载请标明出处.