Get the App
SLTechnology News&Howtos  ›  Servers  › 

What are the NTPD configuration skills of clock synchronization service in Linux system

Shulou Source: shulou.com Published: 2022-05-31 21:53:07 10月02日 Update

This article mainly shows you the "Linux system clock synchronization service NTPD configuration skills", the content is easy to understand, clear, hope to help you solve your doubts, the following let Xiaobian lead you to study and learn "Linux system clock synchronization service NTPD configuration skills" this article.

The following settings take the clock source server IP address 192.168.0.1 as an example.

You can command ntpstat and ntpq-p to view the native NTPD service status.

After the configuration is completed, you need to restart the NTPD service service ntpd restart

[server-side settings]

1. Modify the file ntp.conf under / etc/ as follows:

Server 127.127.1.0 minpoll 4 maxpoll 5

Fudge 127.127.1.0 stratum 2

Restrict 127.0.0.1

Driftfile / var/lib/ntp/drift

two。 Empty the ntpservers contents of the file under / etc/ntp

3. Modify the file step-tickers under / etc/ntp as follows:

127.127.1.0

[client Settings]

1. Modify the file ntp.conf under / etc/ as follows:

Server 192.168.0.1 minpoll 4 maxpoll 5

Fudge 127.127.1.0 stratum 3

Restrict 127.0.0.1

Driftfile / var/lib/ntp/drift

Logfile / etc/ntp.log

Restrict 192.168.0.1 mask 255.255.255.255

two。 Empty the ntpservers contents of the file under / etc/ntp

3. Modify the file step-tickers under / etc/ntp as follows:

192.168.0.1

These are all the contents of this article entitled "what are the NTPD configuration skills of Linux system clock synchronization Service?" Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Tags: Services files content clocks configurations techniques systems synchronization articles servers learning help commands addresses customers clients understandable more organized status Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Tech Info MySQL Xiaomi Huawei Apple