Sync NTP time di CentOS 7

Sync NTP time di CentOS 7

untuk menampilkan waktu pada semua server centos agar sama dapat menggunakan sync ntp. Berikut cara konfigurasinya.

1. Install NTP

#yum install ntp -y

2. Add NTP Server List

# nano /etc/ntp.conf

Masukkan nama server indonesia yang berwarna merah

# 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 iburst
#server 1.centos.pool.ntp.org iburst
#server 2.centos.pool.ntp.org iburst
#server 3.centos.pool.ntp.org iburst
server 0.id.pool.ntp.org iburst
server 1.id.pool.ntp.org iburst
server 2.id.pool.ntp.org iburst
server 3.id.pool.ntp.org iburst

3. Start Service NTP

#systemctl start ntpd

4. Sync Waktu Server

#ntpq -p
[root@zimbra opt]# ntpq -p
remote refid st t when poll reach delay offset jitter
==============================================================================
ns5.datautama.n .INIT. 16 u – 64 0 0.000 0.000 0.000
ntp.lipi.go.id .INIT. 16 u – 64 0 0.000 0.000 0.000
ntp.verd.co.id .INIT. 16 u – 64 0 0.000 0.000 0.000
ip-243-189.data .INIT. 16 u – 64 0 0.000 0.000 0.000

5. Menampilkan Status Sync NTP Server

#timedatectl

Maka akan tampil sebagai berikut
[root@zimbra opt]# timedatectl
Local time                : Tue 2015-12-08 14:16:38 WIB
Universal time        : Tue 2015-12-08 07:16:38 UTC
RTC time                 : Tue 2015-12-08 07:16:38
Timezone                : Asia/Jakarta (WIB, +0700)
NTP enabled          : yes
NTP synchronized: yes
RTC in local TZ     : no
DST active              : n/a

 

Selesai

 

Tinggalkan Balasan

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

×

Hello!

Klik salah satu dibawah untuk chat WhatsApp atau kirim email kepada kami ke info@saad.web.id

× WhatsApp Kami
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.