当前位置:网站首页>Set up a time server
Set up a time server
2022-07-06 21:16:00 【Yang Yangyang baa ~】
Set up a time server
1、 Environmental requirements ( Both client and server should be installed chrony)
Two or more virtual machines are needed to act as servers and clients , All must have yum Source , Then install them separately ntp, Because I used it CentOS8, So the download command is :yum install -y chrony
** Be careful :** I am installing yum There are many problems with the source , I am persistent and use a way to install yum Source thus wasted a lot of time and failed to install , Later, I succeeded in borrowing the method of my classmates , Record the successful installation process here :
a. First cd /etc/yum.repos.d/
Take a look at the configuration file :
b. Delete these original yum Source :rm -rf *
c. Check your own mirrored version , Go to relevant websites to download matching yum Source
The website here is :https://developer.aliyun.com/mirror/?spm=a2c6h.25603864.0.0.50154ccaMggZGI, Just copy the corresponding command
d. install yum Source , The order is :
curl -o /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-vault-8.5.2111.repo
If your mirror version is centos8, You can directly copy my commands
e. Test and install ntp(CentOS7 In the future, it will basically be chrony), see yum Source installed successfully .
here yum The source is finally available
2、 Find a reliable time server address
This step is to search on Baidu , What I use here is ntp1.aliyun.com,
After you find the right address , Start with the virtual machine ping See if it can connect , It can be used if it can be connected .
3、 Edit the of the server chrony The configuration file
The order is :vim chrony.conf
At this time, the first line of white text , It's a time server address he gave you , But we need to use our own virtual machine to test whether it can ping through , Can be used
My result is that Ping through , But it's slower , Because he is a foreign website .
Turn on chronyd service , Verification time
边栏推荐
- 如何实现常见框架
- FZU 1686 龙之谜 重复覆盖
- 请问sql group by 语句问题
- HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
- Laravel笔记-自定义登录中新增登录5次失败锁账户功能(提高系统安全性)
- [interpretation of the paper] machine learning technology for Cataract Classification / classification
- Three schemes of SVM to realize multi classification
- 039. (2.8) thoughts in the ward
- js之遍历数组、字符串
- [redis design and implementation] part I: summary of redis data structure and objects
猜你喜欢
Aike AI frontier promotion (7.6)
新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
967- letter combination of telephone number
968 edit distance
966 minimum path sum
Performance test process and plan
基于STM32单片机设计的红外测温仪(带人脸检测)
Pinduoduo lost the lawsuit, and the case of bargain price difference of 0.9% was sentenced; Wechat internal test, the same mobile phone number can register two account functions; 2022 fields Awards an
OAI 5g nr+usrp b210 installation and construction
No Yum source to install SPuG monitoring
随机推荐
R语言可视化两个以上的分类(类别)变量之间的关系、使用vcd包中的Mosaic函数创建马赛克图( Mosaic plots)、分别可视化两个、三个、四个分类变量的关系的马赛克图
js中,字符串和数组互转(二)——数组转为字符串的方法
js中,字符串和数组互转(一)——字符串转为数组的方法
for循环中break与continue的区别——break-完全结束循环 & continue-终止本次循环
Regular expression collection
KDD 2022 | 通过知识增强的提示学习实现统一的对话式推荐
Huawei device command
js通过数组内容来获取数组下标
js之遍历数组、字符串
Performance test process and plan
document. Usage of write () - write text - modify style and position control
【力扣刷题】一维动态规划记录(53零钱兑换、300最长递增子序列、53最大子数组和)
document.write()的用法-写入文本——修改样式、位置控制
[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
OneNote 深度评测:使用资源、插件、模版
全网最全的新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
039. (2.8) thoughts in the ward
Yyds dry inventory run kubeedge official example_ Counter demo counter
OSPF multi zone configuration