当前位置:网站首页>NTP synchronization clock server server and client settings
NTP synchronization clock server server and client settings
2022-06-24 02:02:00 【NTP network synchronization clock】
To keep the timestamp on the file consistent , We need to do the server ntp Time synchronization .
ntp The server is divided into server and client (C-S)
Operation steps
1 preparation
Both nodes need to perform
First installation ntp
yum install ntp
After installation , Start the service
systemctl start ntpd.service
Set power on self start
systemctl enable ntpd.service
Server settings :
ntp Server settings
First server 192.168.0.104, As ntpserver, Set it to synchronize the Internet time (ntpd When the service is enabled, it is synchronized by default ).
But you have to set up an intranet segment to connect to it , Use it as the time synchronization server of the intranet , So you need a simple configuration .
modify /etc/ntp.conf file , Add the following information , It means to allow 210 Network segment to synchronize this server
vim /etc/ntp.conf
restrict 192.168.0.0 mask 255.255.255.0 # Add this line
After setting , restart ntpd service , use ntpstat To check the effect 【 You can see the effect in a few seconds 】
systemctl restart ntpd
ntpstat
ntp Client side Settings
192.168.0.107 As ntpclient, Set it to synchronize the above ntpserver, A simple configuration is also required , Make the following configurations on the two nodes !
modify /etc/ntp.conf file , Comment out the Internet time server , Add a local server
vim /etc/ntp.conf
server 192.168.0.104 # Add this line
server 0.centos.pool.ntp.org iburst # The following four lines are commented out
server 1.centos.pool.ntp.org iburst
server 2.centos.pool.ntp.org iburst
server 3.centos.pool.ntp.org iburst
After setting , restart ntpd service , use ntpstat To check the effect 【 It will take about fifteen minutes , See the effect 】
systemctl restart ntpd
ntpstat
author :Firetheworld
link :https://www.jianshu.com/p/594a02194034
source : Simple books
The copyright belongs to the author . Commercial reprint please contact the author for authorization , Non-commercial reprint please indicate the source .
边栏推荐
- Summary of various situations in which easycvr cannot use voice intercom function
- Global and Chinese gallium industry market panoramic survey and investment strategy proposal report 2022-2028
- Tcapulusdb Jun · industry news collection
- [read together] Web penetration attack and defense practice (I)
- 8、 Pipeline pipeline construction project
- [software cost consulting] information project bidding process and precautions
- How to use the speech synthesis assistant? Does speech synthesis cost money?
- From idea to finished product, the necessary process of APP product development
- [tcapulusdb knowledge base] how to get started with tcapulus SQL driver?
- LeetCode 1289. Descent path min and II
猜你喜欢

Review of AI hotspots this week: the Gan compression method consumes less than 1/9 of the computing power, and the open source generator turns your photos into hand drawn photos
![[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)](/img/c8/f6c2a62b8ab8fa88bd2b3d8f35f592.jpg)
[SQL injection 12] user agent injection foundation and Practice (based on burpsuite tool and sqli labs LESS18 target machine platform)

163 mailbox login portal display, enterprise mailbox computer version login portal
![[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)](/img/b5/a8c4bbaf868dd20b7dc9449d2a4378.jpg)
[SQL injection 13] referer injection foundation and Practice (based on burpseuite tool and sqli labs less19 target platform)

Stm32g474 infrared receiving based on irtim peripherals

I, a 27 year old female programmer, feel that life is meaningless, not counting the accumulation fund deposit of 430000

layer 3 switch

Introduction to development model + test model

application. Yaml configuring multiple running environments

How to fill in and register e-mail, and open mass mailing software for free
随机推荐
Fulleventlogview does not display some event ID contents
Cloud recommendation Vol.1: quick start to remote control under f-stack, go modules and 5g!
[software cost consulting] information project bidding process and precautions
Railway patrol system - Railway Intelligent Patrol communication system
Query report of each mic quality inspection result on SAP QM inspection lot?
What is "data" in data analysis- Cassie Kozyrkov
Easycvr's use of Huawei IVS query directory shared information list interface
How to access the server through the fortress machine? What if the fortress cannot access the server?
OA system module design scheme
SAP mm maintains inter company sto error -no delivery type defined for supplying
Line/kotlin jdsl: kotlin DSL for JPA criteria API
Grp: implement GRP timeout interceptor
NFS file systems - mount and optimize
Micro850 Simulator
Gin framework: implementing service end flow limiting Middleware
Tencent Conference - black screen analysis
[tcapulusdb knowledge base] how to clean up tables in tcapulusdb table management?
Can the server be restarted through the fortress machine? How are the fortress machines connected to the server
How to query the cloud desktop server address? What are the advantages of using cloud desktop?
4、 Variable assignment method