Centos 更新系统时间

  1. 安装ntpdate工具

yum -y install ntp ntpdate

  1. 设置系统时间与网络时间同步

ntpdate cn.pool.ntp.org

  1. 将系统时间写入硬件时间

hwclock --systohc

4.强制系统时间写入CMOS中防止重启失效

hwclock -w
或者
clock -w

本文来自网络,不代表本站立场,转载请注明出处:万道一,Wonder One » Centos 更新系统时间
莫要搞事情哦
你喜欢的人刚好也未喜欢你
张学友刘德华邓紫琪已关注
赞(0) 打赏

赏点小费吧客倌

微信扫一扫打赏