An accurate Linux time sync

Diposting pada

I have a unique case about the timezone in Linux, so even though it is manually setting to Asia / Jakarta but time is checked the time anyway (if calculated) different 2 hours slower. Maybe a hangover or misinformation wear next to WITA? I do not know and because it works as a web server does not need precision as long as working normally is not a big problem. Just annoying if ga fit.

The solution that I try and succeed is to synchronize the time with a server that specifically caters to accurate time data. Yes, just use NTP (Network Time Protocol) in conclusion. Installation itself is easy:

CentOS:

Debian/Ubuntu

Actually is enough to arrive here because ntp synchronization process will take place automatically but using the default configuration. This can be optimal or not depending on needs. Well .. if only I want to add ntp pool for the territory of Indonesia, it is advisable to use the nearest.

So let’s edit the configuration file:

Then can check what ntp server pool in Indonesia is active here: http://www.pool.ntp.org/zone/id. Which when I write the current content is:

Please insert or replace what the server block contains in the ntp configuration. If you do not forget to restart the ntp process:

That’s it. 😀

Tinggalkan Balasan

Alamat email Anda tidak akan dipublikasikan. Ruas yang wajib ditandai *

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