Linux系列(40) - 自动同步时间chrony
2023-02-18 16:26:38 时间
前言
Centos8开始取消了ntp同步时间,改为chrony同步
chrony工具安装
yum -y install chrony
修改配置文件
将配置文件中的同步服务器修改为国内的时间服务器(推荐阿里及腾讯),将原配置文件中的server注释掉,第三行,换成国内的服务器
vim /etc/chrony.conf
server ntp.aliyun.com iburst
server ntp1.aliyun.com iburst
server ntp2.aliyun.com iburst
重启服务并配置为开机启动
step-1:systemctl enable --now chronyd
step-2:重启Linux服务器
查看时间是否同步
date
相关文章
- Linux系列(5) - 目录处理命令(2)
- Linux系列(4) - 目录处理命令(1)
- Linux系列(3) - ls
- Linux系列(2) - 命令提示符
- Linux系列(1) - 使用Hyper-V安装Linux系统
- Chrome插件 - Modify Headers for Google Chrome(IP欺骗)
- 【深度学习】c++部署onnx模型(Yolov5、PP-HumanSeg、GoogLeNet)
- 【论文笔记】GoogLeNet系列
- Git(2) - git安装、本地仓库与远程仓库使用详细指南
- Git(1) - Git、Github和Gitlab简介
- Power BI模拟麦肯锡多种正方形图表
- 如何用Power BI设计T恤
- Power BI 模拟麦肯锡华夫饼图
- Power BI 表格绝对值和百分比组合
- Power BI模拟小米运动APP三环效果
- Power BI 啤酒消费排行榜
- Power BI 模拟麦肯锡前后对比气泡图
- Excel 2013 Power Query 链接断开问题
- Power BI 排名、绝对值和增长率组合
- Power BI模拟麦肯锡哑铃图表现差异