装完Ubuntu设置完时间,重启总是恢复设置前的时间。
解决方法:
1.安装ntpdate工具
sudo apt-get install ntpdate
2.将系统时间与网络同步
ntpdate cn.pool.ntp.org
3.将时间写入硬件
hwclock --systohc
重启发现系统时间已经不会再恢复为原来的啦!
本文介绍了解决Ubuntu系统重启后时间恢复到设置前的问题的方法。通过安装ntpdate工具、将系统时间与网络同步以及将时间写入硬件等步骤,确保了系统时间的准确性。
装完Ubuntu设置完时间,重启总是恢复设置前的时间。
解决方法:
1.安装ntpdate工具
sudo apt-get install ntpdate
2.将系统时间与网络同步
ntpdate cn.pool.ntp.org
3.将时间写入硬件
hwclock --systohc
重启发现系统时间已经不会再恢复为原来的啦!
3656
5133

被折叠的 条评论
为什么被折叠?
