linux设置时间

匿名 (未验证) 提交于 2019-12-02 21:56:30

设置时间:

date -s "2016-02-26 23:58:0"

恢复到正常时间:

ntpdate pool.ntp.org

在使用ntpdate过程中,遇到过问题:

7 Feb 00:25:30 ntpdate[5648]: Can't adjust the time of day: Invalid argument

或者:

好像这个问题是因为年份比较大而导致的,我也没找到合适的方法修复。只能重新设置一下相对较小的时间,然后重新ntpdate一下。

date --set 101010 ntpdate pool.ntp.org

转载于:https://my.oschina.net/u/191928/blog/618678

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