SOURCECODEBD.NET

Live Experience

NTP Server in CentOS

# yum -y install ntp
# mv /etc/ntp.conf /etc/ntp.conf.bk
# vi /etc/ntp.conf

# Set servers for synchronizing
server 0.rhel.pool.ntp.org

server 1.rhel.pool.ntp.org
server 2.rhel.pool.ntp.org

# /etc/rc.d/init.d/ntpd start
# chkconfig ntpd on
# ntpq -p
remote   refid  st t when poll reach  delay  offset jitter
==========================================================
0.rhel.pool.ntp. 210.173.160.86 2  u  2 64 1 21.227 -475.55 0.001
1.rhel.pool.ntp. 210.173.160.86 2  u  1 64 1 21.400 -475.53 0.001
2.rhel.pool.ntp. 210.173.160.86 2  u   - 64 1 22.087 -476.08 0.001

You are here: Home / CentOS / Install and Configure NTP Server in CentOS