{"id":3361,"date":"2017-10-24T12:50:34","date_gmt":"2017-10-24T16:50:34","guid":{"rendered":"https:\/\/www.globo.tech\/learning-center\/?p=3361"},"modified":"2020-03-06T12:08:38","modified_gmt":"2020-03-06T17:08:38","slug":"configure-date-time-ntp-centos-6","status":"publish","type":"post","link":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/","title":{"rendered":"How to Configure Date &#038; Time Using NTP on CentOS 6"},"content":{"rendered":"<h1>How to Configure Date &amp; Time Using NTP on CentOS 6<\/h1>\n<p>Configuring your <a href=\"https:\/\/www.globo.tech\/\">server<\/a> with an accurate date and time is essential for keeping information consistent across multiple servers or file logs. The date and time for your server can be setup to validate using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Network_Time_Protocol\" rel=\"nofollow\">Network Time Protocol (NTP)<\/a>, which allows the system to synchronize for accurate time keeping.<\/p>\n<p>NTP has been in use and continued development since 1985, making it one of the oldest internet standards currently used. NTP is intended for synchronizing the date and time on the network to within a few milliseconds of Coordinated Universal Time (UTC).<\/p>\n<p>Using an NTP is an efficient method of making sure that the server date and time is always accurate, as the network will continuously adjust the system time based on the upstream NTP server.<\/p>\n<div align=\"center\">\n<div style=\"width: 473px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" title=\"NTP-Algorithm\" src=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png\" alt=\"NTP-Algorithm\" width=\"463\" height=\"216\"><p class=\"wp-caption-text\">NTP-Algorithm<\/p><\/div>\n<\/div>\n<h2>How to install ntp and ntpdate<\/h2>\n<p>The first step in your setup process is to install ntp and ntpdate, which can be installed using yum:<br \/>\n<code>yum install ntp ntpdate<\/code><br \/>\n<code class=\"rouge\">*Note: ntp is going to be used to receive a continuously updated, current system time from the upstream NTP server.<br \/>\n*Note: ntpdate is a utility that's used to set the system date and time via NTP.<\/code><\/p>\n<p>Now that ntp and ntpdate are installed, you may use the following command to adjust your system&#8217;s date and time. This command should be run once, and then only as needed in the future:<br \/>\n<code>ntpdate pool.ntp.org<\/code><\/p>\n<p>Once the RPM installation has completed, you will need to edit the NTP configuration on your system using a text editor of your choice. After opening the NTP configuration file, add the NTP server that you would like to use for your upstream NTP server:<br \/>\n<code>vim \/etc\/ntp.conf<\/code><\/p>\n<p>You can set the public servers from the pool.ntp.org project web page:<br \/>\n<code class=\"gris\">server 0.north-america.pool.ntp.org<br \/>\nserver 1.north-america.pool.ntp.org<br \/>\nserver 2.north-america.pool.ntp.org<br \/>\nserver 3.north-america.pool.ntp.org<\/code><\/p>\n<p>After completing this, you are ready to start the ntpd server:<br \/>\n<code>\/etc\/init.d\/ntpd start<\/code><\/p>\n<p>The final step is to set ntpd to start on boot if desired. If you choose to do so, use the following command to have the ntpd start on boot:<br \/>\n<code>chkconfig ntpd on<\/code><\/p>\n<p>Congratulations! You&#8217;ve completed setting up your system to received updated date and time from an upstream Network Time Server.<\/p>\n<h2>Conclusion<\/h2>\n<p>You&#8217;ve completed the steps needed to configure date and time using NTP on CentOS 6. These servers are designed to keep your system as close to Coordinated Universal Time as possible, usually within a few milliseconds. If you found this guide helpful during your setup, please share it with someone else that is going through the same process.<\/p>\n<!-- AddThis Advanced Settings generic via filter on the_content --><!-- AddThis Share Buttons generic via filter on the_content -->","protected":false},"excerpt":{"rendered":"<p>Configuring your server with an accurate date and time is essential for keeping information consistent across lot of servers or file logs. Configure Date&#8230;<!-- AddThis Advanced Settings generic via filter on get_the_excerpt --><!-- AddThis Share Buttons generic via filter on get_the_excerpt --><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[74],"tags":[],"class_list":["post-3361","post","type-post","status-publish","format-standard","hentry","category-networking","operating_system-centos-6"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Configure Date &amp; Time Using NTP on CentOS 6 - Globo.Tech<\/title>\n<meta name=\"description\" content=\"Configuring your server with an accurate date and time is essential for keeping information consistent across lot of servers or file logs. Configure Date...\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Configure Date &amp; Time Using NTP on CentOS 6 - Globo.Tech\" \/>\n<meta property=\"og:description\" content=\"Configuring your server with an accurate date and time is essential for keeping information consistent across lot of servers or file logs. Configure Date...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/\" \/>\n<meta property=\"og:site_name\" content=\"Globo.Tech\" \/>\n<meta property=\"article:published_time\" content=\"2017-10-24T16:50:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-06T17:08:38+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png\" \/>\n<meta name=\"author\" content=\"GloboTech Communications\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"GloboTech Communications\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/\",\"name\":\"How to Configure Date & Time Using NTP on CentOS 6 - Globo.Tech\",\"isPartOf\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png\",\"datePublished\":\"2017-10-24T16:50:34+00:00\",\"dateModified\":\"2020-03-06T17:08:38+00:00\",\"author\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\"},\"description\":\"Configuring your server with an accurate date and time is essential for keeping information consistent across lot of servers or file logs. Configure Date...\",\"breadcrumb\":{\"@id\":\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#primaryimage\",\"url\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png\",\"contentUrl\":\"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.globo.tech\/learning-center\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Configure Date &#038; Time Using NTP on CentOS 6\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#website\",\"url\":\"https:\/\/www.globo.tech\/learning-center\/\",\"name\":\"Globo.Tech\",\"description\":\"Welcome to the Official Globo.Tech Learning Center\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87\",\"name\":\"GloboTech Communications\",\"sameAs\":[\"http:\/\/www.gtcomm.net\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Configure Date & Time Using NTP on CentOS 6 - Globo.Tech","description":"Configuring your server with an accurate date and time is essential for keeping information consistent across lot of servers or file logs. Configure Date...","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/","og_locale":"en_US","og_type":"article","og_title":"How to Configure Date & Time Using NTP on CentOS 6 - Globo.Tech","og_description":"Configuring your server with an accurate date and time is essential for keeping information consistent across lot of servers or file logs. Configure Date...","og_url":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/","og_site_name":"Globo.Tech","article_published_time":"2017-10-24T16:50:34+00:00","article_modified_time":"2020-03-06T17:08:38+00:00","og_image":[{"url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png","type":"","width":"","height":""}],"author":"GloboTech Communications","twitter_misc":{"Written by":"GloboTech Communications","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/","url":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/","name":"How to Configure Date & Time Using NTP on CentOS 6 - Globo.Tech","isPartOf":{"@id":"https:\/\/www.globo.tech\/learning-center\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#primaryimage"},"image":{"@id":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#primaryimage"},"thumbnailUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png","datePublished":"2017-10-24T16:50:34+00:00","dateModified":"2020-03-06T17:08:38+00:00","author":{"@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87"},"description":"Configuring your server with an accurate date and time is essential for keeping information consistent across lot of servers or file logs. Configure Date...","breadcrumb":{"@id":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#primaryimage","url":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png","contentUrl":"https:\/\/upload.wikimedia.org\/wikipedia\/commons\/thumb\/8\/8d\/NTP-Algorithm.svg\/463px-NTP-Algorithm.svg.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.globo.tech\/learning-center\/configure-date-time-ntp-centos-6\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.globo.tech\/learning-center\/"},{"@type":"ListItem","position":2,"name":"How to Configure Date &#038; Time Using NTP on CentOS 6"}]},{"@type":"WebSite","@id":"https:\/\/www.globo.tech\/learning-center\/#website","url":"https:\/\/www.globo.tech\/learning-center\/","name":"Globo.Tech","description":"Welcome to the Official Globo.Tech Learning Center","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.globo.tech\/learning-center\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.globo.tech\/learning-center\/#\/schema\/person\/e17784b37f4a4f49b7bc611847912e87","name":"GloboTech Communications","sameAs":["http:\/\/www.gtcomm.net"]}]}},"_links":{"self":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3361","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/comments?post=3361"}],"version-history":[{"count":15,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3361\/revisions"}],"predecessor-version":[{"id":4830,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/posts\/3361\/revisions\/4830"}],"wp:attachment":[{"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/media?parent=3361"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/categories?post=3361"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.globo.tech\/learning-center\/wp-json\/wp\/v2\/tags?post=3361"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}