Time Synchronisation: Difference between revisions
From KlavoWiki
Jump to navigationJump to search
(One intermediate revision by the same user not shown) | |||
Line 3: | Line 3: | ||
=== Installation === | === Installation === | ||
<pre> | <pre> | ||
yum install ntp | yum -y install ntp | ||
</pre> | </pre> | ||
=== Turn on service === | === Turn on service === | ||
<pre> | <pre> | ||
systemctl enable ntpd | |||
</pre> | </pre> | ||
Line 17: | Line 17: | ||
</pre> | </pre> | ||
Edit the following file to configure the NTP server(s) of choice.< | Edit the following file to configure the NTP server(s) of choice. | ||
<pre> | |||
vi /etc/ntp.conf | |||
</pre> | |||
<pre> | <pre> | ||
# --- OUR TIMESERVERS ----- | # --- OUR TIMESERVERS ----- | ||
Line 30: | Line 33: | ||
For the people of Australia it may be a good idea to add the following to the pool. | For the people of Australia it may be a good idea to add the following to the pool. | ||
<pre> | <pre> | ||
server 0. | server 0.au.pool.ntp.org | ||
server 1. | server 1.au.pool.ntp.org | ||
server 2. | server 2.au.pool.ntp.org | ||
server 3. | server 3.au.pool.ntp.org | ||
</pre> | </pre> | ||
Line 46: | Line 49: | ||
Start the NTP: | Start the NTP: | ||
<pre> | <pre> | ||
systemctl start ntpd | |||
</pre> | </pre> | ||
[[Category : Linux]] | [[Category : Linux]] |
Latest revision as of 09:25, 2 August 2016
You can easily install NTP (Network Time Protocol, a means of transmitting time signals over a computer network) using yum command under Redhat or CentOS/Fedora core Linux.
Installation
yum -y install ntp
Turn on service
systemctl enable ntpd
Synchronize
the system clock with ntp.bri.connect.com.au server:
ntpdate ntp.bri.connect.com.au
Edit the following file to configure the NTP server(s) of choice.
vi /etc/ntp.conf
# --- OUR TIMESERVERS ----- # Use public servers from the pool.ntp.org project. # Please consider joining the pool (http://www.pool.ntp.org/join.html). server 0.centos.pool.ntp.org server 1.centos.pool.ntp.org server 2.centos.pool.ntp.org
For the people of Australia it may be a good idea to add the following to the pool.
server 0.au.pool.ntp.org server 1.au.pool.ntp.org server 2.au.pool.ntp.org server 3.au.pool.ntp.org
In the past I have been using:
ntp.bri.connect.com.au
I now combine all of them to be in the ntp.conf configuration file.
Starting
Start the NTP:
systemctl start ntpd