当前位置:网站首页>[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
边栏推荐
- DML statement of MySQL Foundation
- uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
- leetcode1-3
- /*Write a function to open the file for input, read the contents of the file into the vector container of string class 8.9: type, and store each line as an element of the container object*/
- Collection of practical string functions
- Native div has editing ability
- Es entry series - 6 document relevance and sorting
- Virtual machine configuration network
- How do microservices aggregate API documents? This wave of show~
- The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago
猜你喜欢

A little feeling

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

Time complexity and space complexity

OSPF summary

Four characteristics and isolation levels of database transactions

OSPF comprehensive experiment

Doris / Clickhouse / Hudi, a phased summary in June

Devop basic command

MongoDB数据日期显示相差8小时 原因和解决方案

Realsense of d435i, d435, d415, t265_ Matching and installation of viewer environment
随机推荐
Knapsack problem and 0-1 knapsack problem
Tables in the thesis of latex learning
The time difference between the past time and the present time of uniapp processing, such as just, a few minutes ago, a few hours ago, a few months ago
Uniapp--- initial use of websocket (long link implementation)
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC
Servlet基本原理与常见API方法的应用
Dynamic memory management
If you don't know these four caching modes, dare you say you understand caching?
Es advanced series - 1 JVM memory allocation
2020-03-28
[Galaxy Kirin V10] [server] KVM create Bridge
Use C to extract all text in PDF files (support.Net core)
C language - stack
Number of relationship models
转载:等比数列的求和公式,及其推导过程
Network connection (II) three handshakes, four waves, socket essence, packaging of network packets, TCP header, IP header, ACK confirmation, sliding window, results of network packets, working mode of
Linked list operation can never change without its roots
Laravel文档阅读笔记-How to use @auth and @guest directives in Laravel
Four characteristics and isolation levels of database transactions
leetcode1-3