Keeping your system clock in sync with NTP
It's incredibly important for Linux servers to keep their time synchronized, as strange things can happen when a server's clock is wrong. One issue I've run into that's especially a problem is file synchronization utilities, which will exhibit strange behavior when there are time issues. However, Ubuntu servers feature the Network Time Protocol client and server within the default repositories to help keep your time in sync. If it's not already installed, all you should need to do is install the ntp
package:
# apt-get install ntp
Once installed, the ntp
daemon will immediately start and will keep your time up to date. To verify, check the status of the ntp
daemon with one of the following commands depending on the age of your server:
systemctl status ntp /etc/init.d/ntp status
The output should show that ntp
is running:
Active: active (running) since Sun 2016-05-06 14:09:28 EST; 3s ago
If all you wanted was a working NTP client, then you're actually...