日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) >

centos 5 .6安装NTP服务器

發(fā)布時(shí)間:2025/3/20 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 centos 5 .6安装NTP服务器 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

?? 因?yàn)橛行┓?wù)和實(shí)驗(yàn)需要多臺(tái)機(jī)器的時(shí)間同步,所以就有了搭建NTP的前提條件了,具體步驟如下:

1,安裝ntp服務(wù)

yum install ntp.i* -y

2,修改/etc/ntp.conf

restrict default kod nomodify notrap nopeer noquery?? #
restrict -6 default kod nomodify notrap nopeer noquery? #針對(duì)ipv6設(shè)置

#這是ntp的默認(rèn)設(shè)置

# 允許本地所有操作
restrict 127.0.0.1
restrict -6 ::1

# 允許的局域網(wǎng)絡(luò)段
restrict 10.0.0.0 mask 255.0.0.0 nomodify motrap
restrict 192.168.0.0 mask 255.255.0.0 nomodify motrap

# 使用上層的internet ntp服務(wù)器
restrict 207.46.232.182 mask 255.255.255.255 nomodify notrap noquery
server 207.46.232.182

# 如果無(wú)法與上層ntp server通信以本地時(shí)間為標(biāo)準(zhǔn)時(shí)間
server??? 127.127.1.0??? # local clock
fudge??? 127.127.1.0 stratum 10???

# 計(jì)算本ntp server 與上層ntpserver的頻率誤差
driftfile /var/lib/ntp/drift

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys
#日志文件
logfile /var/log/ntp.log

?

#說(shuō)明:

restrict <IP 地址> <子網(wǎng)掩碼> |<網(wǎng)段> <子網(wǎng)掩碼> [ignore|noquery|notrap|nomodiy|notrust|nokod]

ignore :關(guān)閉所有ntp服務(wù)

noquery:不提供ntp服務(wù)

notrap:不提供trap遠(yuǎn)程事件登錄的功能

nomodiy:表示客戶端不能更改ntp服務(wù)器的時(shí)間參數(shù),但可以通過(guò)ntp服務(wù)器進(jìn)行時(shí)間矯正

notrust:拒絕沒(méi)有通過(guò)認(rèn)證的客戶端

nokod:kod技術(shù)可以組織一種dos***

?

?

2,在修改/etc/ntp/step-tickers文件

207.46.232.182

127.127.1.0

#當(dāng)ntp服務(wù)器啟動(dòng)時(shí)自動(dòng)與這個(gè)文件中的記錄ip進(jìn)行時(shí)間校對(duì)

?

3,修改/etc/sysconfig/ntpd

SYNC_HWCLOCK=YES #允許BIOS與系統(tǒng)時(shí)間同步

?

4,客戶端設(shè)置略。

?

轉(zhuǎn)載于:https://blog.51cto.com/singlegod/656501

總結(jié)

以上是生活随笔為你收集整理的centos 5 .6安装NTP服务器的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。