当前位置:网站首页>[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
- Hlk-w801wifi connection
- Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
- Summary of several job scheduling problems
- Online troubleshooting
- Number of relationship models
- 【Day1】 deep-learning-basics
- Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
- How do microservices aggregate API documents? This wave of show~
猜你喜欢
Occasional pit compiled by idea
Four characteristics and isolation levels of database transactions
OSPF comprehensive experiment
How to use diff and patch to update the source code
[200 opencv routines] 218 Multi line italic text watermark
Architecture introduction
Collection of practical string functions
Knapsack problem and 0-1 knapsack problem
VLAN part of switching technology
Add t more space to your computer (no need to add hard disk)
随机推荐
PHP代码审计3—系统重装漏洞
Differences among opencv versions
Remove linked list elements
How to use diff and patch to update the source code
Write a program to judge whether the two arrays are equal, and then write a similar program to compare the two vectors.
Error C4996 ‘WSAAsyncSelect‘: Use WSAEventSelect() instead or define _ WINSOCK_ DEPRECATED_ NO_ WARN
Lavel document reading notes -how to use @auth and @guest directives in lavel
If the uniapp is less than 1000, it will be displayed according to the original number. If the number exceeds 1000, it will be converted into 10w+ 1.3k+ display
Latex arranges single column table pictures in double column format articles
Button wizard business running learning - commodity quantity, price reminder, judgment Backpack
Sword finger offer 31 Stack push in and pop-up sequence
【Day2】 convolutional-neural-networks
PHP code audit 3 - system reload vulnerability
今日睡眠质量记录78分
Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
Jianzhi offer 04 (implemented in C language)
BGP advanced experiment
Reprint: summation formula of proportional series and its derivation process
Rhcsa12
Write a program that uses pointers to set all elements of an int array to 4.18: 0.