服务器同步北京时间

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

1.安装ntpdate工具

yum -y install ntp ntpdate

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

ntpdate cn.pool.ntp.org

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

hwclock --systohc

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

hwclock -w

clock -w

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

© 版权声明
THE END
喜欢就支持一下吧
点赞8 分享
The greatest test of courage on earth is to bear defeat without losing heart.
世界上对勇气的最大考验是忍受失败而不丧失信心
评论 抢沙发
头像
欢迎您留下宝贵的见解!
提交
头像

昵称

取消
昵称表情代码图片快捷回复

    暂无评论内容