当前位置:网站首页>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
边栏推荐
- Study notes of grain Mall - phase I: Project Introduction
- Aike AI frontier promotion (7.6)
- 如何实现常见框架
- Introduction to the use of SAP Fiori application index tool and SAP Fiori tools
- MLP (multilayer perceptron neural network) is a multilayer fully connected neural network model.
- What's the best way to get TFS to output each project to its own directory?
- Performance test process and plan
- KDD 2022 | 通过知识增强的提示学习实现统一的对话式推荐
- Simple continuous viewing PTA
- HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
猜你喜欢
[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics
039. (2.8) thoughts in the ward
基于深度学习的参考帧生成
【滑动窗口】第九届蓝桥杯省赛B组:日志统计
for循环中break与continue的区别——break-完全结束循环 & continue-终止本次循环
HMS core machine learning service creates a new "sound" state of simultaneous interpreting translation, and AI makes international exchanges smoother
防火墙基础之外网服务器区部署和双机热备
新型数据库、多维表格平台盘点 Notion、FlowUs、Airtable、SeaTable、维格表 Vika、飞书多维表格、黑帕云、织信 Informat、语雀
Manifest of SAP ui5 framework json
Is it profitable to host an Olympic Games?
随机推荐
OneNote in-depth evaluation: using resources, plug-ins, templates
Thinking about agile development
SDL2来源分析7:演出(SDL_RenderPresent())
'class file has wrong version 52.0, should be 50.0' - class file has wrong version 52.0, should be 50.0
[sliding window] group B of the 9th Landbridge cup provincial tournament: log statistics
全网最全的知识库管理工具综合评测和推荐:FlowUs、Baklib、简道云、ONES Wiki 、PingCode、Seed、MeBox、亿方云、智米云、搜阅云、天翎
20220211 failure - maximum amount of data supported by mongodb
嵌入式开发的7大原罪
Why do job hopping take more than promotion?
js 根据汉字首字母排序(省份排序) 或 根据英文首字母排序——za排序 & az排序
Is it profitable to host an Olympic Games?
el-table表格——sortable排序 & 出现小数、%时排序错乱
What's the best way to get TFS to output each project to its own directory?
Le langage r visualise les relations entre plus de deux variables de classification (catégories), crée des plots Mosaiques en utilisant la fonction Mosaic dans le paquet VCD, et visualise les relation
快过年了,心也懒了
Yyds dry goods count re comb this of arrow function
Ravendb starts -- document metadata
el-table表格——获取单击的是第几行和第几列 & 表格排序之el-table与sort-change、el-table-column与sort-method & 清除排序-clearSort
What is the problem with the SQL group by statement
字符串的使用方法之startwith()-以XX开头、endsWith()-以XX结尾、trim()-删除两端空格