keep your server clock on time with ntpdate

To make sure that your system date always matchs the actual date, you need to install a ntp client
For Debian, just install ntpdate :

root@localhost:~#apt-get install ntpdate

To update your system date :

root@localhost:~#ntpdate 0.debian.pool.ntp.org

ntpdate provides two tools : ntpdate and ntpdate-debian. They do the same job except that ntpdate-debian reads the file /etc/default/ntpdate to look for ntp servers. ntpdate shoud only be used for occasional system date update.

Advertisements

One thought on “keep your server clock on time with ntpdate

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s