您的位置:首页 > 运维架构 > Linux

centos7时钟同步

2020-08-21 16:46 886 查看

1、安装ntpdate工具
yum -y install ntp ntpdate
2、设置系统时间与网络时间同步
ntpdate 0.asia.pool.ntp.org(也可以使用time.nist.gov、time.nuri.net、0.asia.pool.ntp.org、1.asia.pool.ntp.org、2.asia.pool.ntp.org、3.asia.pool.ntp.org)
3、将系统时间写入硬件时间
[root@slave1 ~]# hwclock --systohc
4、验证时间
date

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: