当前位置:网站首页>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 
边栏推荐
- Why do job hopping take more than promotion?
- document. Usage of write () - write text - modify style and position control
- The difference between break and continue in the for loop -- break completely end the loop & continue terminate this loop
- PG基础篇--逻辑结构管理(事务)
- This year, Jianzhi Tencent
- Pat 1078 hashing (25 points) ⼆ times ⽅ exploration method
- Vim 基本配置和经常使用的命令
- 启动嵌入式间:资源有限的系统启动
- What's the best way to get TFS to output each project to its own directory?
- Simple continuous viewing PTA
猜你喜欢

Laravel notes - add the function of locking accounts after 5 login failures in user-defined login (improve system security)

15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient

【深度学习】PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug

No Yum source to install SPuG monitoring

Is it profitable to host an Olympic Games?

审稿人dis整个研究方向已经不仅仅是在审我的稿子了怎么办?
![[200 opencv routines] 220 Mosaic the image](/img/75/0293e10ad6de7ed86df4cacbd79b54.png)
[200 opencv routines] 220 Mosaic the image

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

ICML 2022 | Flowformer: 任务通用的线性复杂度Transformer

ICML 2022 | flowformer: task generic linear complexity transformer
随机推荐
None of the strongest kings in the monitoring industry!
967- letter combination of telephone number
PG基础篇--逻辑结构管理(事务)
JS get array subscript through array content
监控界的最强王者,没有之一!
拼多多败诉,砍价始终差0.9%一案宣判;微信内测同一手机号可注册两个账号功能;2022年度菲尔兹奖公布|极客头条
@GetMapping、@PostMapping 和 @RequestMapping详细区别附实战代码(全)
15million employees are easy to manage, and the cloud native database gaussdb makes HR office more efficient
通过数字电视通过宽带网络取代互联网电视机顶盒应用
JS操作dom元素(一)——获取DOM节点的六种方式
【深度学习】PyTorch 1.12发布,正式支持苹果M1芯片GPU加速,修复众多Bug
[MySQL] basic use of cursor
Pat 1078 hashing (25 points) ⼆ times ⽅ exploration method
Huawei device command
The most comprehensive new database in the whole network, multidimensional table platform inventory note, flowus, airtable, seatable, Vig table Vika, flying Book Multidimensional table, heipayun, Zhix
Nodejs教程之Expressjs一篇文章快速入门
【OpenCV 例程200篇】220.对图像进行马赛克处理
3D face reconstruction: from basic knowledge to recognition / reconstruction methods!
js中,字符串和数组互转(一)——字符串转为数组的方法
039. (2.8) thoughts in the ward