Linux Time Synchronization Service

Source: Internet
Author: User
Tags chrony


1. Synchronize network time to System time ntpdate command

[[Email protected] test1]# Date

Tue SEP 6 07:12:03 CST 2016

[Email protected] test1]# ntpdate cn.pool.ntp.org

6 Sep 09:18:23 ntpdate[13047]: Step time server 120.25.108.11 offset 7566.199829 sec

[[Email protected] test1]# Date

Tue SEP 6 09:18:25 CST 2016

Cn.pool.ntp.org (The official Time synchronization server IP domain name of China National Timing Center)

After synchronizing the network time to the system time, you can use HWCLOCK-W to synchronize the system time to hardware time.


2. Build your own Time synchronization server

Time Synchronization server settings:

Systemctl Stop Firewalld

Vim/etc/chrony.conf

Allow 172.25.254.0/24

Local stratum 10

Systemctl Restart Chrony


3. How to synchronize the system time automatically (synchronize server time)

Chronyc Sources-v See who is syncing with.


1. Determine the time source address (which time to synchronize)

172.25.254.254

2. Determine the time synchronization service used by the customer's host

Chronyd.service

3. Load the time source address in the Chronyd.service service

Vim/etc/chrony.conf

Server172.25.254.254 iburst

#systemctl Restart Chronyd.service


This article from the "Technology life, Simple not simple" blog, please be sure to keep this source http://willis.blog.51cto.com/11907152/1846771

Linux Time Synchronization Service

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.