centos 自动更新时间

本秂侑毒 提交于 2019-12-15 05:06:14

一、查看系统时间
查看系统时间的命令: date
二、查看硬件时间
查看硬件时间的命令: hwclock
三、时间服务器上的时间同步的方法

1.安装ntpdate工具

yum -y install ntp ntpdate

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

ntpdate cn.pool.ntp.org

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

hwclock --systohc

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!