当前位置:网站首页>[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
边栏推荐
- Es advanced series - 1 JVM memory allocation
- [untitled]
- 转载:等比数列的求和公式,及其推导过程
- Debug:==42==ERROR: AddressSanitizer: heap-buffer-overflow on address
- leetcode1-3
- Safety reinforcement learning based on linear function approximation safe RL with linear function approximation translation 1
- PHP代码审计3—系统重装漏洞
- Map container
- 【Day2】 convolutional-neural-networks
- DML statement of MySQL Foundation
猜你喜欢
IPv6 comprehensive experiment
Knapsack problem and 0-1 knapsack problem
Virtual machine configuration network
Remove linked list elements
Jianzhi offer 04 (implemented in C language)
Vs201 solution to failure to open source file HPP (or link library file)
Basic data types of MySQL
On binary tree (C language)
RHCE - day one
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
随机推荐
Virtual machine configuration network
有老师知道 继承RichSourceFunction自定义读mysql怎么做增量吗?
Hlk-w801wifi connection
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
Talk about scalability
uniapp---初步使用websocket(长链接实现)
/*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*/
uniapp 处理过去时间对比现在时间的时间差 如刚刚、几分钟前,几小时前,几个月前
Recursive method to achieve full permutation (C language)
Evolution from monomer architecture to microservice architecture
Recursion and divide and conquer strategy
Native div has editing ability
Remove linked list elements
今日睡眠质量记录78分
Seven examples to understand the storage rules of shaped data on each bit
Latex learning insertion number - list of filled dots, bars, numbers
【Day2】 convolutional-neural-networks
Ruby时间格式转换strftime毫秒匹配格式
【Day2】 convolutional-neural-networks
Online troubleshooting