当前位置:网站首页>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
边栏推荐
- Opencv learning example code 3.2.3 image binarization
- OneNote 深度评测:使用资源、插件、模版
- 15 millions d'employés sont faciles à gérer et la base de données native du cloud gaussdb rend le Bureau des RH plus efficace
- Nodejs tutorial expressjs article quick start
- HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
- 3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
- 请问sql group by 语句问题
- R语言做文本挖掘 Part4文本分类
- Simple continuous viewing PTA
- Seven original sins of embedded development
猜你喜欢
2022菲尔兹奖揭晓!首位韩裔许埈珥上榜,四位80后得奖,乌克兰女数学家成史上唯二获奖女性
监控界的最强王者,没有之一!
Reinforcement learning - learning notes 5 | alphago
Study notes of grain Mall - phase I: Project Introduction
for循环中break与continue的区别——break-完全结束循环 & continue-终止本次循环
PHP saves session data to MySQL database
ICML 2022 | flowformer: task generic linear complexity transformer
MLP (multilayer perceptron neural network) is a multilayer fully connected neural network model.
[in depth learning] pytorch 1.12 was released, officially supporting Apple M1 chip GPU acceleration and repairing many bugs
硬件开发笔记(十): 硬件开发基本流程,制作一个USB转RS232的模块(九):创建CH340G/MAX232封装库sop-16并关联原理图元器件
随机推荐
Reference frame generation based on deep learning
js 根据汉字首字母排序(省份排序) 或 根据英文首字母排序——za排序 & az排序
分糖果
Nodejs教程之让我们用 typescript 创建你的第一个 expressjs 应用程序
js之遍历数组、字符串
面试官:Redis中有序集合的内部实现方式是什么?
MLP (multilayer perceptron neural network) is a multilayer fully connected neural network model.
SDL2来源分析7:演出(SDL_RenderPresent())
Tips for web development: skillfully use ThreadLocal to avoid layer by layer value transmission
Forward maximum matching method
15 millions d'employés sont faciles à gérer et la base de données native du cloud gaussdb rend le Bureau des RH plus efficace
拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条
Comprehensive evaluation and recommendation of the most comprehensive knowledge base management tools in the whole network: flowus, baklib, jiandaoyun, ones wiki, pingcode, seed, mebox, Yifang cloud,
JS according to the Chinese Alphabet (province) or according to the English alphabet - Za sort &az sort
【力扣刷题】一维动态规划记录(53零钱兑换、300最长递增子序列、53最大子数组和)
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
3D人脸重建:从基础知识到识别/重建方法!
HMS Core 机器学习服务打造同传翻译新“声”态,AI让国际交流更顺畅
2022菲尔兹奖揭晓!首位韩裔许埈珥上榜,四位80后得奖,乌克兰女数学家成史上唯二获奖女性
Nodejs tutorial let's create your first expressjs application with typescript