本文作者:温文曦

服务器同步北京时间

温文曦 2020-03-15 5028 抢沙发
服务器同步北京时间摘要: 服务器的时间同步网络时间的方法1.安装ntpdate工具yum -y install ntp ntpdate2.设置系统时间与网络时间同步n...

服务器的时间同步网络时间的方法

1.安装ntpdate工具

yum -y install ntp ntpdate

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

ntpdate cn.pool.ntp.org

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

hwclock --systohc

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

hwclock -w

clock -w


完成这四部服务器就是北京时间了

文章版权及转载声明

作者:温文曦本文地址:https://www.wxnotes.com/blog/250.html发布于 2020-03-15
文章转载或复制请以超链接形式并注明出处文曦博客

赞(6)
阅读
分享

发表评论

快捷回复:

评论列表 (暂无评论,5028人围观)参与讨论

还没有评论,来说两句吧...