当前位置:网站首页>[Galaxy Kirin V10] [server] set time synchronization of intranet server
[Galaxy Kirin V10] [server] set time synchronization of intranet server
2022-07-04 10:33:00 【GUI Anjun @kylinos】
Method 1:ntp The way
step 1: Server configuration
# yum install -y ntp ntpdate
# vim /etc/ntpd.conf
# systemctl restart ntpd
step 2: Client configuration
# yum install -y ntp ntpdate
If there is firewall configuration, it needs to be opened udp 123 port
# firewall-cmd --permanent --add-port=123/udp
# firewall-cmd --reload
# vim /etc/ntpd.conf // The original server Field comments and add the following configuration
# systemctl restart ntpd
# ntpq -p // View synchronization status , At the front * The sign indicates that the synchronization was successful , If there is no need to wait
Method 2:chrony The way
Server configuration :
# yum install chrony -y //sp2 The server comes with
# vim /etc/chrony.conf
If there is firewall configuration, it needs to be opened udp 123 port
# firewall-cmd --permanent --add-port=123/udp
# firewall-cmd --reload
Client configuration :
# yum install chrony -y //sp2 The server comes with
# vim /etc/chrony.conf
# systemctl restart chronyd
# chronyc sources -v // View synchronization status , front ^* The beginning indicates that the synchronization is normal
The way 3:crond+ntpdate The way
In a way 2 After configuration , Clients can also use timed tasks , Specify synchronization period
# ntpdate 192.168.1.150 // Manual sync
# vim /etc/crontab // Join a scheduled task
*/10 * * * * /usr/sbin/ntpdate 192.168.1.21 && hwclock -w
边栏推荐
- The future education examination system cannot answer questions, and there is no response after clicking on the options, and the answers will not be recorded
- Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 2
- Dynamic memory management
- leetcode1229. Schedule the meeting
- If you don't know these four caching modes, dare you say you understand caching?
- Summary of several job scheduling problems
- Doris / Clickhouse / Hudi, a phased summary in June
- Seven examples to understand the storage rules of shaped data on each bit
- Static comprehensive experiment ---hcip1
- Recursive method to achieve full permutation (C language)
猜你喜欢
RHCE - day one
Three schemes of ZK double machine room
【Day1】 deep-learning-basics
20 minutes to learn what XML is_ XML learning notes_ What is an XML file_ Basic grammatical rules_ How to parse
PHP code audit 3 - system reload vulnerability
基于线性函数近似的安全强化学习 Safe RL with Linear Function Approximation 翻译 2
Delayed message center design
【Day2】 convolutional-neural-networks
BGP advanced experiment
Idea SSH channel configuration
随机推荐
Whether a person is reliable or not, closed loop is very important
Add t more space to your computer (no need to add hard disk)
原生div具有编辑能力
六月份阶段性大总结之Doris/Clickhouse/Hudi一网打尽
2020-03-28
leetcode1-3
Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
【Day1】 deep-learning-basics
Map container
按键精灵打怪学习-识别所在地图、跑图、进入帮派识别NPC
Software sharing: the best PDF document conversion tool and PDF Suite Enterprise version sharing | with sharing
Rhcsa operation
Static comprehensive experiment ---hcip1
PHP code audit 3 - system reload vulnerability
Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
Reasons and solutions for the 8-hour difference in mongodb data date display
Jianzhi offer 04 (implemented in C language)
How to use diff and patch to update the source code
Batch distribution of SSH keys and batch execution of ansible
转载:等比数列的求和公式,及其推导过程