当前位置:网站首页>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 .
边栏推荐
- Collation of commonly used glusterfs commands
- Vivo global mall: design and practice of commodity system architecture
- Easycvr's use of Huawei IVS query directory shared information list interface
- How to set up a cloud desktop server? What are the advantages of cloud desktop?
- Shopify has quietly taken the second place in e-commerce in North America. Is independent station the "magic weapon" to win?
- Grp: implement GRP timeout interceptor
- How to query the cloud desktop server address? What are the advantages of using cloud desktop?
- Easynvr background channel list timing request touchstreamclient interface optimization
- Introduction to development model + test model
- SAP WM displays the standard report lx09 of TR item
猜你喜欢
![[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)

layer 3 switch

BIM model example

It's too difficult for me. Ali has had 7 rounds of interviews (5 years of experience and won the offer of P7 post)

application. Yaml configuring multiple running environments

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 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)

If there are enumerations in the entity object, the conversion of enumerations can be carried out with @jsonvalue and @enumvalue annotations

163 mailbox login portal display, enterprise mailbox computer version login portal

Stm32g474 infrared receiving based on irtim peripherals
随机推荐
Five things programmers need to consider when developing with low code – thenewstack
Go language core 36 lecture (go language practice and application I) -- learning notes
Kubesphere upgrade & enable plug-ins after installation
How to restart the server through the fortress machine how to log in to the fortress machine
Introduction to development model + test model
LeetCode 1289. Descent path min and II
My eight year relationship with the message queue
[software cost consulting] information project bidding process and precautions
Benchmarking Shopify? Similarities and differences between "two giants" of Chinese e-commerce SAAS and Weimeng
Nature Reviews Neuroscience: cognitive and behavioral flexibility - neural mechanisms and clinical considerations
[new features] Tencent cloud lightweight ECS will soon support attaching data disks!!!
What are the categories of code signing certificates? What are the differences between different types of certificates?
Grp: implement GRP timeout interceptor
8、 Pipeline pipeline construction project
Echo framework: implementing service end flow limiting Middleware
How to build a video website? How much does it cost to build a video website?
Fulleventlogview does not display some event ID contents
Devops learning notes (II)
Tcapulusdb Jun · industry news collection
Using nginscript as a file distribution service with permission