1 / 5

How to Synchronize Time with NTP in Linux

Sometimes you may need to synchronize time with NTP in Linux. Here are the steps to do it.#linux #unix <br><br>Visit https://fedingo.com/how-to-synchronize-time-with-ntp-in-linux/

Download Presentation

How to Synchronize Time with NTP in Linux

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. How to Synchronize Time with NTP in Linux

  2. Install Chrony in Linux Open terminal and run the following command to install Chrony in Linux server. $ sudo apt-get install chrony [On Debian/Ubuntu] $ sudo yum install chrony [On CentOS/RHEL] $ sudo dnf install chrony [On Fedora 22+] Once chrony is installed, run the following commands to start and enable it to run automatically during system boot. # systemctl enable --now chronyd # systemctl status chronyd You can always run the following command to check if chrony is up & running. # chronyc activity

  3. Check Chrony Synchronization You can run the following command to check list of servers available, status and offsets from local clock and source. Using -v option shows description for each source. # chronyc sources OR # chronyc sources -v If you want to see some more useful information about the sources, use the following command. # chronyc sourcestats OR # chronyc sourcestats -v To check chronyc tracking, run the following command. # chronyc tracking

  4. Configuring Chrony Time Sources The main chrony configuration file is located at /etc/chrony.conf (CentOS/RHEL/Fedora) or /etc/chrony/chrony.conf (Ubuntu/Debian). By default, chrony uses a certain set of servers to fetch UTC time information and synchronize clocks on network. If you want to add another server, open configuration file in text editor. # vim /etc/chrony.conf OR # vim /etc/chrony/chrony.conf Here is an example to add several servers. server 0.europe.pool.ntp.org iburst server 1.europe.pool.ntp.org iburst server 2.europe.pool.ntp.org ibusrt server 3.europe.pool.ntp.org ibusrt Once you have made the required changes, save and close the file, and restart server. $ sudo systemctl restart chrony OR # systemctl restart chronyd

  5. Thank You Visit for details https://fedingo.com/how-to-synchronize-time-with-ntp-in-linux/

More Related