Linux时间更新

Mark一下,总是记不住,以后直接打开来看就ok了。

先安装ntpdate

yum install -y ntpdate

ubuntu或者mac平台使用如apt-get和brew来安装即可,这个主要是centos的。

再选择一个时间服务器来更新时间:

ntpdate time.windows.com

猜你喜欢

转载自blog.51cto.com/xpleaf/2236731
今日推荐