当前位置:网站首页>[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
边栏推荐
- How to teach yourself to learn programming
- How do microservices aggregate API documents? This wave of show~
- Rhcsa operation
- If you don't know these four caching modes, dare you say you understand caching?
- DCL statement of MySQL Foundation
- Write a program that uses pointers to set all elements of an int array to 4.18: 0.
- Rhcsa day 9
- Seven examples to understand the storage rules of shaped data on each bit
- Collection of practical string functions
- Tables in the thesis of latex learning
猜你喜欢

Evolution from monomer architecture to microservice architecture

Tables in the thesis of latex learning

Linked list operation can never change without its roots

The most detailed teaching -- realize win10 multi-user remote login to intranet machine at the same time -- win10+frp+rdpwrap+ Alibaba cloud server

Idea SSH channel configuration

183 sets of free resume templates to help everyone find a good job

Basic data types of MySQL

【Day2】 convolutional-neural-networks

Four characteristics and isolation levels of database transactions

Devop basic command
随机推荐
Delayed message center design
Dichotomy search (C language)
Rhcsa learning practice
Use the data to tell you where is the most difficult province for the college entrance examination!
uniapp 小于1000 按原数字显示 超过1000 数字换算成10w+ 1.3k+ 显示
Reprint: summation formula of proportional series and its derivation process
OSPF summary
2020-03-28
leetcode842. Split the array into Fibonacci sequences
DDL language of MySQL database: create, modify alter, delete drop of databases and tables
Ruby时间格式转换strftime毫秒匹配格式
How do microservices aggregate API documents? This wave of show~
Idea SSH channel configuration
Rhcsa12
system design
Online troubleshooting
AUTOSAR从入门到精通100讲(106)-域控制器中的SOA
Batch distribution of SSH keys and batch execution of ansible
/*The rewriter outputs the contents of the IA array. It is required that the type defined by typedef cannot be used in the outer loop*/
Press the button wizard to learn how to fight monsters - identify the map, run the map, enter the gang and identify NPC