CentOS 8 时间同步
CentOS 推荐使用 chrony
同步时间。
chrony 官网列举了诸多 chrony 优于 ntp 的功能。
安装 chrony
1 | yum -y install chrony |
默认 CentOS 已经安装了 chrony
配置 chrony
备份配置文件
1 | cp /etc/chrony.conf /etc/chrony.conf.backup |
编辑配置文件
1 | nano /etc/chrony.conf |
在打开文件的头部增加以下配置内容:
1 | server ntp1.alyun.com |
启动相关服务
1 | systemctl start chronyd |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 AiKIKI!