ntpd配置時間同步伺服器

2022-06-15 10:24:12 字數 1318 閱讀 6813

修改同步伺服器的配置檔案/etc/ntp.conf ,刪除所有的內容,新增

restrict default nomodify

server 127.127.1.0 # local clock

fudge 127.127.1.0 stratum 8

重啟ntpd

/etc/init.d/ntpd restart
等待ntp伺服器自身同步完成

觀察這個reach需要超過17

否則其他機器ntpdate同步的時候會報錯

restrict default nomodify

server 127.127.1.0

fudge 127.127.1.0 stratum 8

driftfile /var/lib/ntp/drift

server 192.168.8.102

includefile /etc/ntp/crypto/pw

keys /etc/ntp/keys

/etc/sysconfig/ntpd

新增

sync_hwclock=yes
driftfile /var/lib/ntp/drift

server 192.168.8.102 prefer

server 192.168.8.101

includefile /etc/ntp/crypto/pw

keys /etc/ntp/keys

restrict default nomodify

server 127.127.1.0

fudge 127.127.1.0

stratum 5

driftfile /var/lib/ntp/drift

server 192.168.8.102

includefile /etc/ntp/crypto/pw

keys /etc/ntp/keys

stratum 6

why

when

建立2023年08月06日

更新2023年12月9日

時間伺服器 時間同步配置

windows2008 2012配置時間同步 w32tm config manualpeerlist time.youxinpai.com syncfromflags manual reliable yes update 查客時間間隔 w32tm stripchart computer time.y...

Linux 時間同步 ntpd

關於linux下時間同步的解決方案,其實有幾種。一是使用rdate命令,同步時間到遠端主機。二是運用ntp軟體包。以下主要講使用ntpd的方式來完成時間的同步。當然,首先得確認ntp軟體包已經安裝,一般使用以下命令 即是檢視rpm包的ntp是否已經裝到系統中 rpm q ntp 顯示已安裝的ntp的...

linux同步時間伺服器時間配置

linux時間同步簡單配置如下 centos7.x 安裝時間伺服器 系統一般會自帶 yum install ntp ntpdate y 時間伺服器臨時配置 重啟該配置失效 ntpdate 192.133.203.89 時間伺服器ip 時間伺服器配置 vim etc chrony.conf 進入vim...