In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-08 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
In this article, the editor introduces in detail "how to install NTP Network time Protocol in Centos7". The content is detailed, the steps are clear, and the details are handled properly. I hope this article "how to install NTP Network time Protocol in Centos7" can help you solve your doubts.
Server:
1. Install the ntp service
Yum install ntp ntpdate-y
2. Find the most suitable time server in the current region.
Step 1: open the website: http://www.pool.ntp.org/zone/asia step 2: copy the most appropriate synchronization server recommended automatically
3. Edit / etc/ntp.conf
Vim / etc/ntp.conf copy the time server found above and save it
4. Start the ntp service
Cd / usr/lib/systemd/systemsystemctl start ntpd # start systemctl enable ntpd.service # setup Boot Startup Service
5. Synchronize remote time service (the following two are the first two ntp queried in step 2)
Ntpdate-Q 0.asia.pool.ntp.org 1.asia.pool.ntp.org
6. Verification service: ntpq-p
View current time: date-R
Open Baidu and search for "time" to see if the time is the same.
7. Set up Job to automatically synchronize remote services at a fixed time every day
Crontab-e00 01 * root / usr/sbin/ntpdate-Q 0.asia.pool.ntp.org 1.asia.pool.ntp.org client:
1. Install the ntp service
Yum install ntp ntpdate-y
2. Start the ntp service
Cd / usr/lib/systemd/systemsystemctl start ntpd # start systemctl enable ntpd.service # setup Boot Startup Service
3. Modify the hardware time and keep it synchronized with the software NTP
Hwclock-w
4. Test server synchronization
Ntpdate-d-b 192.168.85.20
5. If normal, you can set up Job and run it automatically.
00 01 * root / usr/sbin/ntpdate-Q 192.168.85.20 read here, this article "how to install NTP Network time Protocol in Centos7" has been introduced. If you want to master the knowledge of this article, you still need to practice and use it before you can understand it. If you want to know more about related articles, please follow the industry information channel.
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.