Linux 时间时区同步

$ sudo cp /usr/share/zoneinfo/Asia/ShangHai /etc/localtime  

  上述是修改系统时区

同步时间

    1.  安装ntpdate工具

$  sudo apt-get install ntpdate

    2.  设置系统时间与网络时间同步

$ ntpdate cn.pool.ntp.org

    3.  将系统时间写入硬件时间

$ hwclock –systohc

 

posted @ 2016-08-04 11:44  littlemonsters  阅读(704)  评论(0编辑  收藏  举报