Centos永久修改系统时间

版权声明:欢迎关注公众号herok,定期推送高质量技术干货文章。 https://blog.csdn.net/qq_21792169/article/details/83994101

Centos系统,必须同时修改系统时间和硬件时间,才可以保证修改有效,单纯的使用date命令修改系统时间,是立即生效,重启后系统还原。具体操作如下:

1.date {查看目前本地的时间}
2.hwclock --show {查看硬件的时间}
3.如果硬件时间和系统时间不同,那就对硬件的时间进行修改
4.clock -w   保存系统时间为硬件时间,即是rtc时间
--------------------- 

猜你喜欢

转载自blog.csdn.net/qq_21792169/article/details/83994101
今日推荐