当前位置:网站首页>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
边栏推荐
- How to implement common frameworks
- 1500萬員工輕松管理,雲原生數據庫GaussDB讓HR辦公更高效
- JS学习笔记-OO创建怀疑的对象
- 防火墙基础之外网服务器区部署和双机热备
- 'class file has wrong version 52.0, should be 50.0' - class file has wrong version 52.0, should be 50.0
- 【mysql】游标的基本使用
- Yyds dry goods count re comb this of arrow function
- In JS, string and array are converted to each other (II) -- the method of converting array into string
- [200 opencv routines] 220 Mosaic the image
- After working for 5 years, this experience is left when you reach P7. You have helped your friends get 10 offers
猜你喜欢
[in depth learning] pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
Why do job hopping take more than promotion?
基于深度学习的参考帧生成
OAI 5g nr+usrp b210 installation and construction
1500万员工轻松管理,云原生数据库GaussDB让HR办公更高效
2022菲尔兹奖揭晓!首位韩裔许埈珥上榜,四位80后得奖,乌克兰女数学家成史上唯二获奖女性
新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
for循环中break与continue的区别——break-完全结束循环 & continue-终止本次循环
爱可可AI前沿推介(7.6)
KDD 2022 | realize unified conversational recommendation through knowledge enhanced prompt learning
随机推荐
Forward maximum matching method
PHP saves session data to MySQL database
2022 fields Award Announced! The first Korean Xu Long'er was on the list, and four post-80s women won the prize. Ukrainian female mathematicians became the only two women to win the prize in history
Why do job hopping take more than promotion?
R语言可视化两个以上的分类(类别)变量之间的关系、使用vcd包中的Mosaic函数创建马赛克图( Mosaic plots)、分别可视化两个、三个、四个分类变量的关系的马赛克图
什么是RDB和AOF
Reinforcement learning - learning notes 5 | alphago
Spiral square PTA
document. Usage of write () - write text - modify style and position control
爱可可AI前沿推介(7.6)
966 minimum path sum
c#使用oracle存储过程获取结果集实例
JS学习笔记-OO创建怀疑的对象
Aike AI frontier promotion (7.6)
Yyds dry inventory run kubeedge official example_ Counter demo counter
字符串的使用方法之startwith()-以XX开头、endsWith()-以XX结尾、trim()-删除两端空格
【力扣刷题】一维动态规划记录(53零钱兑换、300最长递增子序列、53最大子数组和)
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
What is the difference between procedural SQL and C language in defining variables
愛可可AI前沿推介(7.6)