Quantcast
Channel: Webkul Blog
Viewing all articles
Browse latest Browse all 5488

Installing and Configuring Network Time Protocol (NTP) on Ubuntu

$
0
0


Install and configure NTP on Ubuntu

Enter the following command to install NTP:

sudo apt-get install ntp

Use NTP pool servers

  1. Open /etc/ntp.conf in a text editor.
  2. Look for lines similar to the following:
server 0.centos.pool.ntp.org
server 1.centos.pool.ntp.org
server 2.centos.pool.ntp.org
  1. Replace those lines or add additional lines that specify your NTP pool server or other NTP servers. It’s a good idea to specify more than one.
  2. An example of using three United States-based NTP servers follows:
server 0.us.pool.ntp.org
server 1.us.pool.ntp.org
server 2.us.pool.ntp.org
  1. Save your changes to /etc/ntp.conf and exit the text editor.
  2. Restart the service.
sudo service ntp restart
  1. Enter date to check the server’s date.


Viewing all articles
Browse latest Browse all 5488

Trending Articles