Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mantendo a hora sincronizada no CentOS

Featured Replies

Postado

Primeiro é necessário ter o ntp instalado

yum install ntp

Vamos criar um arquivo para registrar as variações de hora

touch /etc/ntp.drift

Se o servidor estiver mais que 16 minutos com a hora errada, primeiro use o comando abaixo para acertar a hora:

date MMddhhmmyyyy

on

mm (mês 00-12)

dd (dia 00-31)

HH (hora 00-23)

MM (min 00-59)

yyyy (0000-9999)

Altere o conteúdo do arquivo padrão /etc/ntp.conf pela configuração abaixo.

vim /etc/ntp.conf


# "memoria" para o escorregamento de frequencia do micro

# pode ser necessario criar esse arquivo manualmente com

# o comando touch ntp.drift

driftfile /etc/ntp.drift


# estatisticas do ntp que permitem verificar o historico

# de funcionamento e gerar graficos

statsdir /var/log/ntpstats/

statistics loopstats peerstats clockstats

filegen loopstats file loopstats type day enable

filegen peerstats file peerstats type day enable

filegen clockstats file clockstats type day enable


# servidores publicos do projeto ntp.br

server a.st1.ntp.br iburst

server b.st1.ntp.br iburst

server c.st1.ntp.br iburst

server d.st1.ntp.br iburst

server gps.ntp.br iburst

server a.ntp.br iburst

server b.ntp.br iburst

server c.ntp.br iburst


# outros servidores

# server outro-servidor.dominio.br iburst


# configuracoes de restricao de acesso

restrict default kod notrap nomodify nopeer

restrict -6 default kod notrap nomodify nopeer  

pronto agora é só reiniciar o ntpd

service ntpd restart

para habilitar para ele iniciar ao ligar o servidor, basta usar:

chkconfig --level 235 ntpd

Mais informações sobre o ntp, tem o site da http://ntp.br

:cool:


Postado

Muito bom! parabéns pela iniciativa!


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.