美文网首页
CoreOS 系统 设置系统时间

CoreOS 系统 设置系统时间

作者: 飞翼_U | 来源:发表于2017-09-01 19:08 被阅读158次

    首先简单介绍一下 CoreOS:

    C1. CoreOS是一个基于Docker的轻量级容器化Linux发行版,专为大型数据中心而设计,旨在通过轻量的系统架构和灵活的应用程序部署能力简化数据中心的维护成本和复杂度。
    C2.如果说Docker是下一代的虚拟机,那CoreOS就应该是下一代的服务器Linux
    C3.是一个整体的集群操作系统

    查看系统版本命令:hostnamectl

    core@coreos /etc $ hostnamectl
      Static hostname: coreos
            Icon name: computer-server
              Chassis: server
           Machine ID: ff01127743db49939fba9b482f34d9b5
              Boot ID: e316350294df477d8e857db43567472d
     Operating System: Container Linux by CoreOS 1465.6.0 (Ladybug)
               Kernel: Linux 4.12.7-coreos
         Architecture: x86-64
    core@coreos /etc $ 
    

    查看系统时间命令:timedatectl

    core@coreos ~ $ timedatectl   
          Local time: Tue 2017-08-29 13:34:33 UTC
      Universal time: Tue 2017-08-29 13:34:33 UTC
            RTC time: Tue 2017-08-29 13:34:34
           Time zone: UTC (UTC, +0000)
     Network time on: no
    NTP synchronized: no
     RTC in local TZ: no
    core@coreos ~ $ 
    
    

    在上面的示例中,RTC time就是硬件时钟的时间。

    推荐使用和设置协调世界时,即UTC。
    timedatectl set-timezone UTC

    设置时间和日期

    sudo timedatectl set-time "2017-08-25 18:13:30"

    参考链接 http://www.cnblogs.com/zhi-leaf/p/6282301.html

    <完!>

    相关文章

      网友评论

          本文标题:CoreOS 系统 设置系统时间

          本文链接:https://www.haomeiwen.com/subject/fvvwdxtx.html