首先簡單介紹一下 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
<完!>