Server time off in Ubuntu 14.04

To install ntp on Ubuntu, Linux or debian based distribitions


# apt-get update
# apt-get install ntp

To install ntp on Fedora, Centos or redhat based distribitions


# yum install ntp
After you set your timezone correcly, you should be able to synce your date and time with ntp command


# ntpdate pool.ntp.org


# ntpdate 0.ubuntu.pool.ntp.org
19 Feb 18:42:09 

You can edit the file /etc/ntp.conf to control certain variables with the NTP service, and can start and stop the file using “/etc/init.d/ntp [status|start|stop]”.

Leave a Comment

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.