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

Centos7.5 chorny synchronization time

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

Share

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

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

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