centos7 同步网络时间

安装ntpdate sudo yum install -y ntpdate 然后使用命令同步网络时间 sudo ntpdate pool.ntp.org 重新查看时间如下: 此处还不能完全解决掉这个问题,因为重启之后将会读取硬件时钟的数据。时间又会恢复到之前的样子。 使用hwclock看硬件时间,还是有问题。 写入硬件时间如下hwclock -w
相关文章
相关标签/搜索