Cov txheej txheem:

Kuv yuav paub li cas yog NTP ua haujlwm Linux?
Kuv yuav paub li cas yog NTP ua haujlwm Linux?

Video: Kuv yuav paub li cas yog NTP ua haujlwm Linux?

Video: Kuv yuav paub li cas yog NTP ua haujlwm Linux?
Video: Hmong Rap Song - Vim Tsis Muaj Koj By Noj Tuag Production 2024, Kaum ib hlis
Anonim

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 cov NTP kev pabcuam ntawm qhov piv txwv. [ec2-neeg siv ~]$ ntpstat.
  2. (Yeem) Koj tuaj yeem siv ntpq -p hais kom ua saib ib daim ntawv teev cov phooj ywg paub txog NTP server thiab cov ntsiab lus ntawm lawv lub xeev.

Tsis tas li ntawd, kuv yuav paub li cas yog tias kuv tus NTP server ua haujlwm?

Rau kuaj seb koj lub NTP server ua haujlwm kom raug, koj tsuas yog yuav tsum tau hloov tus sij hawm koj NTP server , ces saib yog tias tus neeg siv lub computer lub sijhawm hloov ib yam. Nyem Pib. Ntaus "cmd" rau hauv tus text box thiab nias "Enter." Cov command utility yuav tshwm sim.

Tsis tas li, kuv yuav pib NTP daemon hauv Linux li cas?

  1. Kauj ruam 1: Nruab thiab teeb tsa NTP daemon. NTP server pob yog muab los ntawm lub neej ntawd los ntawm official CentOS / RHEL 7 repositories thiab tuaj yeem ntsia tau los ntawm kev tshaj tawm cov lus txib hauv qab no.
  2. Kauj ruam 2: Ntxiv cov cai Firewall thiab pib NTP Daemon.
  3. Kauj ruam 3: Txheeb xyuas lub sijhawm Sync server.
  4. Kauj ruam 4: Teeb Windows NTP Client.

Ib sab saum toj no, 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 siv NTP 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:

Pom zoo: