1.離線安裝包下載地址
下載路徑阿里云盤
資源內(nèi)容包含如下:
服務(wù)端
:
1.找一臺服務(wù)做時間服務(wù)器,將文件夾 ntp-install 放入到
/home 下,執(zhí)行命令 sh setup
2. 修改/etc/ntp.conf 文件配置.
允許 1192.168.0.0-192.168.0.255 網(wǎng)段內(nèi)所有機(jī)器從 esnode1 同步時間
restrict 192.168.0.0 mask 255.255.255.0 nomodify notrap
外部時間服務(wù)器不可用時,以本地時間作為時間服務(wù)
server 127.127.1.0 #local clock
fudge 127.127.1.0 stratum
3 重啟 ntp 服務(wù) systemctl restart ntpd.service
4 .開機(jī)自啟動 systemctl enable ntpd
客戶端
- 將文件夾 ntp-install 放入到/home 下,執(zhí)行命令 sh
setup.sh - 修改/etc/ntp.conf 文件配置。
3.重啟 ntp 服務(wù) systemctl restart ntpd.service
4 .開機(jī)自啟動 systemctl enable ntpd文章來源:http://www.zghlxwxcb.cn/news/detail-859096.html
常用操作命令 :
ntpstat
ntpq -p
remote: *表示目前使用的 ntp server;+表示備用服務(wù)器
st:即 stratum 階層,值越小表示 ntp serve 的精準(zhǔn)度越高;
when:幾秒前曾做過時間同步更新的操作;
Poll 表示,每隔多少毫秒與 ntp server 同步一次;
reach:已經(jīng)向上層 NTP 服務(wù)器要求更新的次數(shù);
delay:網(wǎng)絡(luò)傳輸過程鐘延遲的時間;
offset:時間補(bǔ)償?shù)慕Y(jié)果;
jitter:Linux 系統(tǒng)時間與 BIOS 硬件時間的差異時間文章來源地址http://www.zghlxwxcb.cn/news/detail-859096.html
到了這里,關(guān)于centos 7 離線安裝ntp時鐘服務(wù)器以及客戶端的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!