|
1053.
|
|
|
To set up ntpd:
|
|
|
|
Para configurar o ntpd:
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
Located in
serverguide/C/network-config.xml:1065(para)
|
|
1054.
|
|
|
sudo apt-get install ntp
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
sudo apt-get install ntp
|
|
Translated and reviewed by
André Gondim
|
|
|
|
Located in
serverguide/C/network-config.xml:1066(screen)
|
|
1055.
|
|
|
Changing Time Servers
|
|
|
|
Mudando servidores de Horário
|
|
Translated and reviewed by
Welliton Sá
|
|
|
|
Located in
serverguide/C/network-config.xml:1071(title)
|
|
1056.
|
|
|
In both cases above, your system will use Ubuntu's NTP server at <code>ntp.ubuntu.com</code> by default. This is OK, but you might want to use several servers to increase accuracy and resilience, and you may want to use time servers that are geographically closer to you. to do this for ntpdate, change the contents of <code>/etc/cron.daily/ntpdate</code> to:
|
|
|
|
Em ambos os casos acima, seu sistema irá usar, por padrão, o servidor NTP do Ubuntu <code>ntp.ubuntu.com</code> . Isso está OK, mas você pode querer usar vários servidores para aumentar a precisão e consistência, e você pode querer usar servidores de hora que estão geograficamente próximos a você. Para fazer isso com o ntpdate, altere o conteúdo de <code>/etc/cron.daily/ntpdate</code> para:
|
|
Translated and reviewed by
Ricardo Cropalato de Melo
|
|
|
|
Located in
serverguide/C/network-config.xml:1072(para)
|
|
1057.
|
|
|
ntpdate ntp.ubuntu.com pool.ntp.org
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
represents a space character.
Enter a space in the equivalent position in the translation.
|
|
|
|
ntpdate ntp.ubuntu.com pool.ntp.org
|
|
Translated and reviewed by
Alex Rocha
|
|
|
|
Located in
serverguide/C/network-config.xml:1079(screen)
|
|
1058.
|
|
|
And for ntpd edit <code>/etc/ntp.conf</code> to include additional server lines:
|
|
|
|
E para ntpd edite <code>/etc/ntp.conf</code> para incluir linhas de servidores adicionais:
|
|
Translated and reviewed by
Ricardo Cropalato de Melo
|
|
|
|
Located in
serverguide/C/network-config.xml:1081(para)
|
|
1059.
|
|
|
server ntp.ubuntu.com
server pool.ntp.org
|
|
|
represents a line break.
Start a new line in the equivalent position in the translation.
|
|
|
|
server ntp.ubuntu.com
server pool.ntp.org
|
|
Translated and reviewed by
Andre Noel
|
|
|
|
Located in
serverguide/C/network-config.xml:1086(screen)
|
|
1060.
|
|
|
You may notice <code>pool.ntp.org</code> in the examples above. This is a really good idea which uses round-robin DNS to return an NTP server from a pool, spreading the load between several different servers. Even better, they have pools for different regions - for instance, if you are in New Zealand, so you could use <code>nz.pool.ntp.org</code> instead of <code>pool.ntp.org</code> . Look at <ulink url="http://www.pool.ntp.org/">http://www.pool.ntp.org/</ulink> for more details.
|
|
|
|
Você pode observar <code>pool.ntp.org</code> no exemplo acima. Essa é uma ideia muito boa que usa DNS round-robin para retornar um servidor NTPa partir de um grupo, distribuindo a carga entre vários servidores diferentes. Melhor ainda, Eles tem grupos para diferentes regiões - por exemplo, se você estiver no Brasil, então você pode usar <code>br.pool.ntp.org</code> em vez de <code>pool.ntp.org</code>. De uma olhada em <ulink url="http://www.pool.ntp.org/">http://www.pool.ntp.org/</ulink> para mais detalhes.
|
|
Translated and reviewed by
Ricardo Cropalato de Melo
|
|
|
|
Located in
serverguide/C/network-config.xml:1089(para)
|
|
1061.
|
|
|
You can also Google for NTP servers in your region, and add these to your configuration. To test that a server works, just type <code>sudo ntpdate ntp.server.name</code> and see what happens.
|
|
|
|
Você pode usar o Google para encontrar servidores NTP na sua região, e adicione-os na sua configuração. Para testar se um servidor funciona, simplesmente tecle <code>sudo ntpdate ntp.server.name</code> e veja o que acontece.
|
|
Translated and reviewed by
Ricardo Cropalato de Melo
|
|
|
|
Located in
serverguide/C/network-config.xml:1100(para)
|
|
1062.
|
|
|
Related Pages
|
|
|
|
Páginas Relacionadas
|
|
Translated and reviewed by
Alex Rocha
|
|
|