Cov txheej txheem:

NTP ua haujlwm li cas hauv Linux?
NTP ua haujlwm li cas hauv Linux?

Video: NTP ua haujlwm li cas hauv Linux?

Video: NTP ua haujlwm li cas hauv Linux?
Video: kab dag part2 6/16/2018 2024, Kaum ib hlis
Anonim

Network Time Protocol ( NTP ) yog ib txoj kev siv los pab synchronize koj Linux system lub moos nrog lub sijhawm raug. Muaj cov uas tso cai rau cov pej xeem los synchronize nrog lawv. Lawv muab faib ua ob hom: Stratum 1: NTP cov chaw siv lub moos atomic rau lub sijhawm.

Ntxiv rau qhov no, NTP yog dab tsi thiab nws ua haujlwm li cas?

NTP yog tsim los synchronize lub moos ntawm cov computers thiab tes hauj lwm thoob plaws hauv Internet los yog Local Area Networks (LANs). NTP txheeb xyuas cov nqi teev sijhawm nrog rau qhov zaus ntawm qhov ua yuam kev thiab kev ruaj ntseg. A NTP server yuav tuav qhov kwv yees ntawm qhov zoo ntawm nws cov moos siv thiab ntawm nws tus kheej.

Tsis tas li ntawd, siv NTP Linux li cas? Configure NTP tus thov kev pab

  1. Txhawm rau teeb tsa koj lub Linux system ua tus neeg siv khoom NTP, koj yuav tsum tau nruab ntp daemon (ntpd).
  2. Cov ntaub ntawv ntpd configuration nyob ntawm /etc/ntp.conf.
  3. Cov ntaub ntawv no muaj cov npe ntawm NTP servers uas yuav siv rau lub sijhawm synchronization.
  4. Tom ntej no, rov pib dua NTP deamon nrog sudo kev pabcuam ntp reload hais kom ua:

Raws li txoj cai, NTP yog dab tsi hauv Linux?

Network Time Protocol ( NTP ) yog cov txheej txheem siv los synchronize computer system moos cia li hla ib lub network. Txoj hauv kev zoo tshaj plaws los synchronize lub sijhawm ntawm lub network hauv Linux desktops lossis servers yog los ntawm kev ua tiav cov lus txib ntpdate uas tuaj yeem teem sijhawm koj lub sijhawm los ntawm ib qho NTP sijhawm server.

Kuv yuav paub li cas yog NTP ua haujlwm Linux?

Txhawm rau txheeb xyuas tias koj qhov kev teeb tsa NTP ua haujlwm zoo, khiav cov hauv qab no:

  1. Siv cov lus txib ntpstat los saib cov xwm txheej ntawm NTP kev pabcuam ntawm qhov piv txwv. [ec2-neeg siv ~]$ ntpstat.
  2. (Yeem) Koj tuaj yeem siv ntpq -p hais kom pom cov npe ntawm cov phooj ywg paub txog NTP server thiab cov ntsiab lus ntawm lawv lub xeev.

Pom zoo: