In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to install and use Chrony in Centos" related knowledge, editor through the actual case to show you the operation process, the method of operation is simple and fast, practical, I hope that this "how to install and use Chrony in Centos" article can help you solve the problem.
Chrony is an open source free software that helps you keep your system clock synchronized with the clock server (NTP), so keep your time accurate. Install and use Chrony specific methods in Centos.
Install sudo dnf install chrony-ysudo yum install chrony-y
Centos8 uses firewalld services to manage firewalls. Release ntp Service (123/udp)
Firewall-cmd-- add-service=ntp-- permanent & & firewall-cmd-- reload as the server
Configure the chrony server
Sudo vim / etc/chrony.conf
Delete the NTP server that comes with the configuration. Change to the NTP server address of Ariyun in China.
Add an upstream NTP server
Server time1.aliyun.com iburstserver time2.aliyun.com iburstserver time3.aliyun.com iburst
Allow clients within 192.168.1.0 Compact 24 to obtain time through this server
Allow 192.168.1.0/24
After the configuration is correct, restart the chrony service and configure boot self-startup:
Systemctl restart chronyd.servicesystemctl enable chronyd.service
Use the ss-tlunp | grep chrony or lsof-igrep chrony 123 command to check whether the 123/udp port used by the chrony service has started successfully
As a client
Also install, and then modify the client chrony configuration file
Sudo vim / etc/chrony.conf# Use public servers from the pool.ntp.org project.# Please consider joining the pool (http://www.pool.ntp.org/join.html).# pool 2.centos.pool.ntp.org iburst
# add NTP server
Server time1.aliyun.com iburstserver time2.aliyun.com iburstserver time3.aliyun.com iburst
If you have a self-built chrony client, you can also configure it yourself.
Server 192.168.1.30 iburst
Restart the chrony client service, restart the chrony service, and configure boot self-startup:
Systemctl restart chronyd.service & & systemctl enable chronyd.service-- now
View synchronization status
Chronyc sources-v on "how to install and use Chrony in Centos" is introduced here, thank you for reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.