Chronyd Time Server Synchronization time configuration

Source: Internet
Author: User
Tags chrony

Chrony is the two program used to maintain the accuracy of computer system clocks, both of which are named Chronyd and Chronyc.

Chronyd is a daemon that runs in the background of the system. He adjusts the system clock by measuring the offset of the local time based on other time server time on the network. For orphaned systems, the user can manually enter the correct time periodically (via CHRONYC). In both cases, the chronyd determines the ratio of the speed of the computer and corrects it. CHRONYD implements the NTP protocol and can act as a server or client.

CHRONYC is a user interface for monitoring chronyd performance and configuring its parameters. He can control the CHRONYD processes running on the machine and other computers.

View Date

#date

View time Details

#timedatectl

NTP Network Time Protocol

Configuring the NTP server

Service side: 192.168.100.12

#yum Install NTP

# vi/etc/ntp.conf

Add a network segment

The time synchronization server is set to its own

127.127.1.0

Restart the service and set it to boot

# Systemctl Start ntpd

# Systemctl Enable NTPD

View ports

# NETSTAT-NTUPL | grep 123

Client: 192.168.100.11

Installation Services

#yum Install Chrony-y

Modifying a configuration file

# vi/etc/chrony.conf

Restart Service

#systemctl Restart Chronyd

View status

#systemctl Status Chronyd

Viewing time synchronization sources

# Chronyc Sources-v

# Timedatectl

Chronyd Time Server Synchronization time configuration

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.