当前位置:网站首页>Deployment (10): intranet cluster NTP clock synchronization
Deployment (10): intranet cluster NTP clock synchronization
2022-06-08 23:40:00 【Lxinccode】
Reference resources :
https://wenku.baidu.com/view/8a649980f624ccbff121dd36a32d7375a417c6f2.html
https://blog.csdn.net/zhong_jianyu/article/details/86220914# Single feasible
inappropriate address 172.18.74.119 for the fudge_weixin_33786077 The blog of -CSDN Blog
1. Download dependency package
Use of public network machines yum Download all dependent packages
# install yum-utils
yum -y install yum-utils
# download ntp Total dependent package
repotrack ntp2. install ntp
Upload all downloaded in the previous step rpm Package all the machines in the intranet , Execution and installation
rpm -Uvh --force --nodeps *.rpm3. To configure
3.1.ntp The server
Choose a machine as the clock source ( If the machine ip by 192.168.1.1), The machine is modified [/etc/ntp.conf] file
Delete restrict and server Start configuration , Add the following configuration
restrict default nomodify
server 127.127.1.0
Fudge 127.127.1.0 stratum 103.2.ntp client
modify [/etc/ntp.conf] file
Delete server Start configuration , Add the following configuration (ip by ntp The server ip)
server 192.168.1.14. start-up ntp service
All machines perform
# start-up
service ntpd start
# Check the status
service ntpd status
# Set power on self start
chkconfig ntpd on
# see ntp Clock source
ntpq -p
# see ntp state ( The manual synchronization becomes normal after a period of time )
ntpstat
Client execution synchronization time
ntpdate -u 192.168.1.15. The client sets the timing synchronization time
adopt crontab Timing task timing synchronization time
Edit scheduled tasks
crontab -eAdd tasks ( Every time 10 Minute synchronization time )
*/10 * * * * service ntpd start && /usr/sbin/ntpdate 192.168.1.1 >> /var/log/ntpdate.lognotes : Met ntp Can hang , Scheduled tasks can be set as follows
*/10 * * * * /usr/sbin/ntpdate 192.168.1.1 >> /var/log/ntpdate.log边栏推荐
- stm32f103ve+BH1750使用教程+oled(HAL库)
- Summary of week 11
- 【Delphi + ZXingQRCode】动态生成二维码,JPG 和 PNG 图片大小差别,天壤之别*****
- 食品包装机电气滑环的使用
- Gorm reports an error reflect: reflect Value. SetInt using unaddressable value
- Epigentek epiquik plant chip kit scheme
- 数字IC设计——Makefile脚本(示例)
- Detailed explanation of conv2d parameters
- [data visualization] antv L7 adds legend to the map
- MVC Mode & three-tier architecture idea to complete addition, deletion, modification and inspection
猜你喜欢

Stm32f103ve+ photoelectric sensor tutorial +oled (HAL Library)

说明书丨Abbexa 人 Calsequestrin 1蛋白说明书

MVC模式 &三层架构思想完成增删改查.

Pytorch distributed training

Architecture design of outsourcing student management system

Epigentek chromaflash chromatin Extraction Kit scheme

How to choose smart cameras such as Xiaomi, 360 and fluorite? What function information should be paid attention to

Sequential action localization 𞓜 background suppression network for weakly supervised temporal action localization

说明书丨Abbexa 人组蛋白 H3.1 蛋白说明书

Instruction manual of albexa calsequestrin 1 protein
随机推荐
Can RPA create new business types? How to optimize the organizational structure? How to help enterprises in the epidemic?
Idea selected plug-ins, recommended for collection
时序动作定位 | 数据集介绍及下载(ActivityNet、THUMOS’14)
MySQL transactions
说明书丨Abbexa 人组蛋白 H3.1 蛋白说明书
RuntimeErron: Expected a ‘cpu‘ device type for generator but found ‘cuda‘
In the ray tracing process, the direction of the refracted ray is calculated according to the incident vector and the refractive index
Required course for network engineer, detailed explanation of DHCP principle, and required course for job interview
Maya modeling V
Wisealign alignment consumption time description
LeetCode-1241. 每个帖子的评论数
[hand tearing code] - Verilog realizes breathing lamp
Anthony Goldbloom, co-founder and CEO of kaggle, left to start a new business
QUIC和互联网传输的未来
QUIC和互联网传输的未来
Epigentek chromaflash chromatin Extraction Kit scheme
stm32f103ve+光电传感器使用教程+oled(HAL库)
Network Engineer required course configuration of routing switch stelnet
说明书丨Abbexa 人 Calsequestrin 1蛋白说明书
百发百中篮板「最后的进化」:篮筐学会了主动找球,躺着、用脚都能投中