{"id":3675,"date":"2012-07-28T22:25:55","date_gmt":"2012-07-28T14:25:55","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=3675"},"modified":"2023-04-28T09:49:01","modified_gmt":"2023-04-28T09:49:01","slug":"how-to-configure-ntp-server-for-time-adjustment-on-centos-6-3","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-configure-ntp-server-for-time-adjustment-on-centos-6-3\/","title":{"rendered":"How to Configure NTP Server for Time Adjustment on CentOS 6.3"},"content":{"rendered":"<p><img decoding=\"async\" width=\"213\" height=\"236\" data-src=\"https:\/\/webhostinggeeks.com\/howto\/wp-content\/uploads\/2012\/07\/ntp.jpg\" alt=\"ntp\" title=\"ntp\" class=\"wp-image-3676 img-fluid lazyload\" src=\"data:image\/svg+xml;base64,PHN2ZyB3aWR0aD0iMSIgaGVpZ2h0PSIxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjwvc3ZnPg==\" style=\"--smush-placeholder-width: 213px; --smush-placeholder-aspect-ratio: 213\/236;\" \/><\/p>\n<p>This post covers the steps to install NTP server on CentOS 6.3. NTP, Network Time Protocol, it is an Internet protocol used to synchronize the clocks of computers or servers to some NTP server on internet or intranet.<\/p>\n<p>1. Install ntp using yum command : <\/p>\n<pre>\r\n[root@centos63 ~]# yum install ntp -y\r\n<\/pre>\n<p>2. Once NTP is installed you need to update the configuration file, ntp.conf located in the \/etc directory :<\/p>\n<pre>\r\n[root@centos63 ~]# vi \/etc\/ntp.conf\r\n<\/pre>\n<pre>\r\n# Hosts on local network are less restricted.\r\nrestrict 192.168.1.0 mask 255.255.255.0 nomodify notrap\r\n\r\n# Use public servers from the pool.ntp.org project.\r\n# Please consider joining the pool (http:\/\/www.pool.ntp.org\/join.html).\r\n#server 0.centos.pool.ntp.org\r\n#server 1.centos.pool.ntp.org\r\n#server 2.centos.pool.ntp.org\r\nserver 0.asia.pool.ntp.org\r\nserver 1.asia.pool.ntp.org\r\nserver 2.asia.pool.ntp.org\r\nserver 3.asia.pool.ntp.org\r\n\r\n..\r\n..\r\n<\/pre>\n<p>3. Start the NTP service :<\/p>\n<pre>\r\n[root@centos63 ~]# \/etc\/rc.d\/init.d\/ntpd start\r\nStarting ntpd:                                             [  OK  ]\r\n<\/pre>\n<p>4. NTP service start at boot :<\/p>\n<pre>\r\n[root@centos63 ~]# chkconfig ntpd on\r\n<\/pre>\n<p>5. Test your ntp client status :<\/p>\n<pre>\r\n[root@centos63 ~]# ntpq -p\r\n     remote           refid      st t when poll reach   delay   offset  jitter\r\n==============================================================================\r\n 103.6.16.254    10.84.87.146     2 u   16   64    1  129.453   18.233   0.002\r\n superluminal.sf 189.70.85.38     2 u   16   64    1  128.466    1.971   0.002\r\n fnttkyo043241.t 165.246.43.176   3 u   15   64    1  125.813   11.528   0.002\r\n send.mx.cdnetwo 131.107.13.100   2 u   14   64    1  250.371  -53.987   0.002\r\n<\/pre>\n<p>6. To verify the NTP service is now running on the server using the following command : <\/p>\n<pre>\r\n[root@centos63 ~]# ps -e | grep ntpd\r\n 5206 ?        00:00:00 ntpd\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>This post covers the steps to install NTP server on CentOS 6.3. NTP, Network Time Protocol, it is an Internet protocol used to synchronize the clocks of computers or servers&#8230;<\/p>\n","protected":false},"author":6,"featured_media":3676,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[2064],"tags":[1244,1254,1536,1610,1611],"class_list":["post-3675","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ntp","tag-centos","tag-centos-6-3","tag-linux","tag-ntp","tag-ntp-server"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3675","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=3675"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/3675\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/3676"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=3675"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=3675"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=3675"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}