{"id":3019,"date":"2016-03-02T21:12:50","date_gmt":"2016-03-02T21:12:50","guid":{"rendered":"https:\/\/qbytes.cloud\/?p=3019"},"modified":"2016-03-02T21:12:50","modified_gmt":"2016-03-02T21:12:50","slug":"sync-date-centos-6-vm-servers","status":"publish","type":"post","link":"https:\/\/www.qbytes.cloud\/index.php\/2016\/03\/02\/sync-date-centos-6-vm-servers\/","title":{"rendered":"Sync Date on CentOS 6 VM servers"},"content":{"rendered":"<p>My VM on ESXi have all different dates. Here is how toset them the same.<\/p>\n<p><a href=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2016\/03\/date.png\" rel=\"attachment wp-att-3020\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/qbytes.cloud\/wp-content\/uploads\/2016\/03\/date.png\" alt=\"date\" width=\"262\" height=\"59\" class=\"alignnone size-full wp-image-3020\" \/><\/a><\/p>\n<p>First, you\u2019ll need to install NTP. For Debian or Ubuntu, that would be this command:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# sudo apt-get install ntp\n\n<\/pre>\n<p>For Redhat or CentOS, you\u2019ll need to use this one:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# yum install ntp\n\n<\/pre>\n<p>Then you\u2019ll want to edit the \/etc\/ntp.conf file, which is quite possibly already filled out for you.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# nano \/etc\/ntp.conf\n\n<\/pre>\n<p>You can get a list of server addresses at www.pool.ntp.org. Here are the North America ones:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\nserver 0.north-america.pool.ntp.org\nserver 1.north-america.pool.ntp.org\nserver 2.north-america.pool.ntp.org\nserver 3.north-america.pool.ntp.org\n\n<\/pre>\n<p>Set it to run at boot<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# chkconfig --list\nntpd            0:off   1:off   2:off   3:off   4:off   5:off   6:off\n<\/pre>\n<p>For Redhat and CentOS 6<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nchkconfig ntpd on\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# ntpd            0:off   1:off   2:on    3:on    4:on    5:on    6:off\n<\/pre>\n<p>For Redhat 7 and CentOS 7<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# systemctl enable ntpd.service\n<\/pre>\n<p>CentOS 6 restart or start the NTPD service:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n# \/etc\/init.d\/ntpd restart\n\n<\/pre>\n<p>CentOS 7 Restart<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n# \/bin\/systemctl start  ntpd.service\n<\/pre>\n<p>If you want to update the time right now, you can stop the NTP service and then run the following command, swapping out your preferred server for pool.ntp.org.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n\n\/usr\/sbin\/ntpdate pool.ntp.org\n\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>My VM on ESXi have all different dates. Here is how toset them the same. First, you\u2019ll need to install NTP. For Debian or Ubuntu, that would be this command: # sudo apt-get install ntp For Redhat or CentOS, you\u2019ll need to use this one: # yum install ntp Then you\u2019ll want to edit the &#8230; <a title=\"Sync Date on CentOS 6 VM servers\" class=\"read-more\" href=\"https:\/\/www.qbytes.cloud\/index.php\/2016\/03\/02\/sync-date-centos-6-vm-servers\/\" aria-label=\"Read more about Sync Date on CentOS 6 VM servers\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-3019","post","type-post","status-publish","format-standard","hentry","category-administration"],"_links":{"self":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/comments?post=3019"}],"version-history":[{"count":0,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/posts\/3019\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/media?parent=3019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/categories?post=3019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qbytes.cloud\/index.php\/wp-json\/wp\/v2\/tags?post=3019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}