{"id":149,"date":"2022-05-04T09:37:37","date_gmt":"2022-05-04T14:37:37","guid":{"rendered":"https:\/\/www.hostinglabs.net\/content\/?post_type=ht_kb&#038;p=149"},"modified":"2022-05-04T12:43:16","modified_gmt":"2022-05-04T17:43:16","slug":"como-instalar-ntp-para-mantener-sincronizada-la-hora-del-sistema-en-centos","status":"publish","type":"ht_kb","link":"https:\/\/hostinglabs.net\/asistencia\/base-de-conocimientos\/como-instalar-ntp-para-mantener-sincronizada-la-hora-del-sistema-en-centos\/","title":{"rendered":"C\u00f3mo instalar NTP para mantener sincronizada la hora del sistema en Centos"},"content":{"rendered":"\n<p><strong>En esta gu\u00eda , ayudaremos con los paso a paso para configurar y usar un servidor NTP en centos 7 de Linux<\/strong><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/clientes.hostinglabs.net\/images\/kb\/186_ntp.png\" alt=\"\"\/ width=\"1066\" height=\"444\" loading=\"lazy\" decoding=\"async\"><\/figure>\n\n\n\n<figure class=\"wp-block-pullquote\"><blockquote><p  style=\"font-size:16px;font-style:italic\">El mantener nuestros&nbsp;servidores&nbsp;sincronizados es una de los pilares principales dentro de nuestra gesti\u00f3n de despliegue e implementaci\u00f3n ya que de esta&nbsp;sincronizaci\u00f3n&nbsp;dependen que muchos procesos,&nbsp;servicios&nbsp;y aplicaciones funcionen de la manera&nbsp;correcta&nbsp;ya que un error en este proceso puede ser perjudicial para la administraci\u00f3n.<\/p><p  style=\"font-size:16px;font-style:italic;\">Para mantener esta sincronizaci\u00f3n siempre al d\u00eda y de forma&nbsp;correcta&nbsp;existe un protocolo llamada&nbsp;NTP&nbsp;el cual nos permitir\u00e1 estar seguros de que la sincronizaci\u00f3n de nuestro servidor, este configurado de forma correcta.<\/p><p  style=\"font-size:16px;font-style:italic\"><strong>NOTA : El protocolo NTP usa por defecto el puerto 123 UDP<\/strong><\/p><\/blockquote><\/figure>\n\n\n\n<p>Dicho esto, comenzaremos con la instalaci\u00f3n y configuraci\u00f3n del servidor NTP.&nbsp;<\/p>\n\n\n\n<p><strong>Pre Requisitos:&nbsp;<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Tener acceso sudo o root&nbsp; al servidor<\/li><\/ul>\n\n\n\n<p><strong>Paso 1:<\/strong> Verificamos si la hora est\u00e1 correctamente sincronizada :\u00a0<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n timedatectl\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/clientes.hostinglabs.net\/images\/kb\/190_ntp1.png\" alt=\"\"\/ width=\"552\" height=\"180\" loading=\"lazy\" decoding=\"async\"><\/figure>\n\n\n\n<p><strong>Paso 2:<\/strong> Listaremos las zonas horarias y tomaremos la que nos interese. (America\/Lima)<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n sudo timedatectl  list-timeszones | grep  Lima\n<\/pre><\/div>\n\n\n<p><strong>Paso 3:<\/strong> Utilizaremos los siguientes par\u00e1metros para actualizar la zona horaria.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n timedatectl set-timezone America\/Lima\n<\/pre><\/div>\n\n\n<p><strong>Paso 4:<\/strong> Instalar el servidor NTP.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo yum install ntp\n<\/pre><\/div>\n\n\n<p><strong>Paso 5:<\/strong> Iniciamos el servicio.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo systemctl start ntpd\n<\/pre><\/div>\n\n\n<p><strong>Paso 6:<\/strong> Reiniciamos el servicio.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n sudo systemctl restart ntpd\n<\/pre><\/div>\n\n\n<p><strong>Paso 7:<\/strong> Finalmente faltar\u00eda que ntpd inicie con el sistema.<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo systemctl enable ntpd\n<\/pre><\/div>\n\n\n<p><strong>Nota<\/strong> : Para estar seguros de la instalaci\u00f3n , validamos nuevamente con el siguiente comando :<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: bash; title: ; notranslate\" title=\"\">\n timedatectl\n<\/pre><\/div>\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/clientes.hostinglabs.net\/images\/kb\/191_ntp2.png\" alt=\"\"\/ width=\"556\" height=\"134\" loading=\"lazy\" decoding=\"async\"><\/figure>\n\n\n\n<p><strong>\u00a1FELICIDADES!<\/strong> La instalaci\u00f3n y configuraci\u00f3n fue correcta.\u00a0<\/p>\n","protected":false},"excerpt":{"rendered":"<p>En esta gu\u00eda , ayudaremos con los paso a paso para configurar y usar un servidor NTP en centos 7 de Linux El mantener nuestros&nbsp;servidores&nbsp;sincronizados es una de los pilares principales dentro de nuestra gesti\u00f3n de despliegue e implementaci\u00f3n ya que de esta&nbsp;sincronizaci\u00f3n&nbsp;dependen que muchos procesos,&nbsp;servicios&nbsp;y aplicaciones funcionen de la&#8230;<\/p>\n","protected":false},"author":2,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[20],"ht-kb-tag":[],"class_list":["post-149","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-servidores-cloud"],"_links":{"self":[{"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/ht-kb\/149"}],"collection":[{"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/comments?post=149"}],"version-history":[{"count":9,"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/ht-kb\/149\/revisions"}],"predecessor-version":[{"id":160,"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/ht-kb\/149\/revisions\/160"}],"wp:attachment":[{"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/media?parent=149"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/ht-kb-category?post=149"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/hostinglabs.net\/asistencia\/wp-json\/wp\/v2\/ht-kb-tag?post=149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}