CentOS 8时间同步

Posted on 2022-01-12 13:08  风行天下-2080  阅读(121)  评论(0编辑  收藏  举报

1、

https://blog.csdn.net/baozi_xiaoge/article/details/103823996

https://blog.csdn.net/u012115793/article/details/106973011

https://www.cnblogs.com/lizhaoxian/p/11260041.html

建议:在系统安装时设置网络,并开启网络时间同步,则下面就不需要了。可以加入多个server
CentOS 8中已经无法安装ntpdate

使用了chrony模块。同步网络时间很简单。
修改配置加入网络时间,当然,可以加入多个server服务器

vim /etc/chrony.conf
1

 

 

 

 


server 210.72.145.44 iburst
server ntp.aliyun.com iburst
1
2
重新加载配置
···
systemctl restart chronyd.service
···
时间同步

chronyc sources -v
1

 

 

————————————————

2、

查看本机时间

timedatectl

Copyright © 2024 风行天下-2080
Powered by .NET 8.0 on Kubernetes