码迷,mamicode.com
首页 > 其他好文 > 详细

Centos6.6 系统时间及时区校准方法

时间:2016-07-06 18:32:55      阅读:346      评论:0      收藏:0      [点我收藏+]

标签:时间校准   时区   更新时间   

Centos6.6 系统时间及时区校准方法:

   1)chkconfig --list|grep ntp【检查ntp服务是否开启】

      1.没有ntpdate 要yum install ntp(rqm –qa ntp装完检查)

      2.安装完成以后,继续step2

   2)chkconfig --level 3 ntpdate on【开机自启ntpdate自动更新时间服务】

   3)chkconfig --list|grep ntp【检查服务是否开启】

   4 )ntpdate -s time.windows.com

        clock【更新系统时间并检查】

    5)grep ntpdate -s time.windows.com /etc/sysconfig/clock【写入开机启动项】


本文出自 “Grep” 博客,请务必保留此出处http://omglove.blog.51cto.com/2821585/1811274

Centos6.6 系统时间及时区校准方法

标签:时间校准   时区   更新时间   

原文地址:http://omglove.blog.51cto.com/2821585/1811274

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!