本篇文章為大家展示了如何入門ntp,內(nèi)容簡(jiǎn)明扼要并且容易理解,絕對(duì)能使你眼前一亮,通過這篇文章的詳細(xì)介紹希望你能有所收獲。
ntp 最原始的時(shí)間服務(wù)器
yum install ntp ntpdate systemctl enable ntpd && systemctl restart ntpd
# vi /etc/ntp.conf server cn.pool.ntp.org prefer restrict 192.168.1.1 mask 255.255.255.0 nomodify server 127.127.1.0 # localclock fudge 127.127.1.0 stratum 10 # restart service systemctl enable ntpd && systemctl restart ntpd
# vi /etc/ntp.conf server cn.pool.ntp.org prefer # restart service systemctl enable ntpd && systemctl restart ntpd
ntpq -p
#vi /etc/crontab */5 * * * * root ntpdate -s 192.168.1.1 ; hwclock -w
上述內(nèi)容就是如何入門ntp,你們學(xué)到知識(shí)或技能了嗎?如果還想學(xué)到更多技能或者豐富自己的知識(shí)儲(chǔ)備,歡迎關(guān)注創(chuàng)新互聯(lián)-成都網(wǎng)站建設(shè)公司行業(yè)資訊頻道。