Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Chrony, an alternative tool for NTP time synchronization

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

Chrony is an implementation program of the ntp protocol, which can be used as a server or a client; Chrony has three time references: hardware clock, real-time clock and manual synchronization. Chrony is an alternative to the NTP client, which synchronizes clocks with more precise time and faster speed. It takes up less system resources and takes up a small part of CPU only when it is aroused. Chrony is also compatible with ntpdate.

Support for hardware timestamps on Linux, allowing extremely accurate synchronization on the local network. Two services:

Chronyc: Chrony command line interface, client program. Chronyd: Chrony daemon service, server-side program. Chrony installation

Installation environment CentOS7yum install chrony-y

Start the chrony service

Systemctl start chronyd.service

The main configuration file is: / etc/chrony.conf

Configuration

Modify / etc/chrony.confserver ntp.aliyun.com iburst # iburst to a fixed format. Server cn.pool.ntp.org iburstserver tw.pool.ntp.org iburst...# allows you to specify the synchronization time of hosts on the network. If you don't specify it, you will allow all. By default, it will not be enabled. Allow 192.168.43.0/24

Quick configuration in command line mode

Sed-I-e'/ ^ server/s/ ^ / # /'- e'1a server ntp.aliyun.com iburst' / etc/chrony.conf commonly used chrony commands

Use commands such as tacking,sources and sourcestats to check the synchronization of chrony.

Chronyc tracking tracking status

Chronyc sources displays current time source information

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report