关于NTP的配置
| ?? NTP平時不用,但也挺重要的東西,我書簽太多了,收放BLOG里來記錄吧,以下為轉的 1,安裝 yum -y install ntpd ? 2,配置 vim /etc/ntpd.conf #權限問題 restrict default nomodify notrap noquery #開放以下主機的進入權限 restrict 203.117.180.36 restrict 64.236.96.53 restrict 132.163.4.101 restrict 132.163.4.102 restrict 132.163.4.103 #內部與LAN的使用權限 restrict 127.0.0.1????????????mask 255.0.0.0 restrict 192.168.0.0????????mask 255.255.255.0 #服務器地址(時間來源) server 203.117.180.36 prefer???? #prefer表示優先 server 64.236.96.53 server 132.163.4.101 server 132.163.4.102 server 132.163.4.103 server 210.72.145.44 #原內定的一個內部時間數據,不需更改 server????127.127.1.0???????? # local clock fudge???? 127.127.1.0 stratum 10 #時間差異分析的參數,保留默認值即可 driftfile /var/lib/ntp/drift broadcastdelay 0.008 #暫時不會使用的keys 相關認證功能 keys /etc/ntp/keys ? vim? /etc/sysconfig/ntpd SYNC_HWCLOCK=yes BIOS時間也會跟著改變 ? 3,NTP服務啟動 ? service ntpd start ? netstat -tlunp #查看UDP123號端口是否啟動 ? ntpstat #查看NTP服務器是否與上層聯機,通常15分鐘左右才能聯上 ? ntptrace -n 127.0.0.1 #列出了當前NTP服務器與上層NTP服務器彼此之間的關系 ? ntpq -p #查看狀態 ? 客戶端同步: ? ntpdate 192.168.0.X |
總結
- 上一篇: 教你快速掌握如何使用“Opatch”打补
- 下一篇: Oracle DBVERIFY 工具介绍