• Network Time Protocol keeps the time on your system accurate.
  • Maintaining NTP on the system to remain as accurate as possible is very important because time is used to log files, time-stamps, and in encryption.

Ensure that NTP is installed and synchronizing properly by entering:

# yum -y install ntp && chkconfig ntpd on && /etc/init.d/ntpd start

Enable the ntpd.service by entering:

# systemctl enable ntpd.service

Check the status of the ntp service by entering:

# systemctl status ntpd.service

Edit the ntp.conf file with the vi editor:

# vi /etc/ntp.conf

Locate the server parameters and enter the following:

server pool.ntp.org

Syncronize the system clock to the NTP server:

# ntpdate pool.ntp.org

To start at boot either enable it or alternatively use the command:

# timedatectl set-ntp 1

Use the date command to display the current date and time:

# date


Who's new

Recent comments

No comments available.

Who's online

There are currently 0 users online.