This really is just a reference for me, but you can all know it.
There are times when your server in its current timezone has the wrong time. It could be by a few seconds, minutes or even hours. I'll show you how to set it back to normal.
Read more on how to do it.
Let's set the date/time!
I'm assuming you already have the correct timezone set for your server. First we will contact a remote server to get the correct date/time for your server's timezone.
rdate -s time.nist.gov
Now, we'll set the servers hardware clock to the correct time too.
/sbin/hwclock --systohc
There you have it. Your server's date/time should be correct now. You can also set up a cron job to automatically do the above so that you never have to worry about the date or time being wrong. I may cover that in another tutorial at a later date.
Posted by Steven Sullivan on 23rd July, 2006 - 16:52:59 GMT
There are no comments. Why not be the first to comment?