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

How to synchronize chorny time with centos

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

How does centos synchronize chorny time? I believe that most people have not yet learned this skill, in order to let you learn, give you a summary of the following steps to synchronize chorny time, let's follow the editor to have a look.

Virtual machines:

1. Turn off the firewall and selinux

Systemctl disable firewalld

Systemctl stop firewalld

Vim / etc/selinux/config

SELINUX=disabled

2 、

Server side: 192.168.30.101

Client: 192.168.30.102

3. End time of client and server:

4. Configure server: vim / etc/chrony.conf

Server ntp.aliyun.com iburst

Allow 192.168.0.0/16

5. Configure client: vim / etc/chrony.conf

Server 192.168.30.101 iburst

6. The configuration file needs to restart the chronyd service.

Systemctl restart chronyd; time synchronization

7. Execute chronyc: ^ * 192.168.30.101 indicates that it has been synchronized with the server

8. Execute chronyc: 192.168.30.102 indicates the synchronized clients

Note:

[root@centos7 yum.repos.d] # systemctl is-active chronyd to see if the service is running

Active

[root@centos7 yum.repos.d] # systemctl is-enabled chronyd to check whether the service starts automatically

After reading this article, can you synchronize chorny time with centos independently? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel. Thank you for reading.

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