GNU/Linux >> Tutoriales Linux >  >> Cent OS

Cómo ejecutar automáticamente ntpdate al iniciar NTPD en CentOS/RHEL 5

Pregunta :¿Cómo ejecutar automáticamente ntpdate al iniciar NTPD en CentOS/RHEL 5?

1. De forma predeterminada, el archivo /etc/ntp/step-tickers está vacío, para sincronizar la hora con ntpdate durante el inicio de ntpd, necesitamos ingresar las direcciones IP de su servidor de hora:

# cat /etc/ntp.conf | grep server
server 192.168.X.1
server 192.168.Y.2
# cat /etc/ntp/step-tickers
192.168.X.1
192.168.Y.2

2. Ahora podemos reiniciar el servidor ntp.

# /etc/init.d/ntpd restart
Shutting down ntpd:                        [ OK ]
ntpd: Synchronizing with timer server:     [ OK ]
Starting ntpd:                             [ OK ]

ntpd:sincronizando con el servidor del temporizador:[ OK ] , indica que ntpdate se ejecutó durante el inicio de ntpd.

3. Cuando -x opción en /etc/sysconfig/ntpd se usa, ntpd usará automáticamente los servidores de tiempo configurados en /etc/ntp.conf para sincronizar la hora cuando se inicia incluso cuando /etc/ntp/step-tickers está vacío.


Cent OS
  1. Cómo instalar un servidor DNS en RHEL 8 / CentOS 8 Linux

  2. Cómo instalar Puppet en CentOS 8 / RHEL 8

  3. Cómo configurar el servidor SysLog en CentOS 7 / RHEL 7

  4. Cómo instalar Puppet 6.x en CentOS 7 / RHEL 7

  5. CentOS / RHEL 7:Cómo instalar la GUI

Cómo instalar el servidor Redis en CentOS 8 / RHEL 8

Cómo configurar el servidor NFS en CentOS 8 / RHEL 8

Cómo instalar Zabbix Server 4.x en CentOS 6 / RHEL 6

Cómo configurar un Chef 12 en CentOS 7 / RHEL 7

Cómo instalar el servidor Zabbix 5.0/4.0 en CentOS 7/RHEL 7

Cómo configurar el servidor VNC en CentOS/RHEL 6