美文网首页
centos时间设置

centos时间设置

作者: IT胖 | 来源:发表于2019-04-12 10:35 被阅读0次
查询时间是否一致
date
自动同步时间
ntpdate cn.pool.ntp.org

查询服务器时间:

[root@nebula bin]# timedatectl 
      Local time: 三 2019-04-03 02:32:34 UTC
  Universal time: 三 2019-04-03 02:32:34 UTC
        RTC time: 三 2019-04-03 02:32:34
       Time zone: Universal (UTC, +0000)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a

默认为:Time zone: Universal (UTC, +0000)
将时间改为:Time zone: Asia/Shanghai (CST, +0800)

[root@nebula bin]# timedatectl  set-timezone Asia/Shanghai
[root@nebula bin]# timedatectl 
      Local time: 三 2019-04-03 10:34:43 CST
  Universal time: 三 2019-04-03 02:34:43 UTC
        RTC time: 三 2019-04-03 02:34:42
       Time zone: Asia/Shanghai (CST, +0800)
     NTP enabled: yes
NTP synchronized: yes
 RTC in local TZ: no
      DST active: n/a

相关文章

  • linux

    CentOS 7 时区、日期时间查看以及设置杂烩 CentOS 7 中时区、日期时间的查看、设置。包括网络时间协议...

  • centos时间设置

    查询服务器时间: 默认为:Time zone: Universal (UTC, +0000)将时间改为:Time ...

  • Centos时间设置

    查看 修改 时钟概念 在CentOS 6版本,时间设置有date、hwclock命令,从CentOS 7开始,使用...

  • centos设置系统时间

    在安装Centos7虚拟机后,一直没有注意时间,今天才注意到时间比当前的时间少一天便打算进行同步时间 自此,配置时间结束

  • Linux CentOS7.6常用命令

    系统设置 时间设置 ssh超时时间设置 更新centos本地仓库(换源)   yum对应编辑文件/etc/yum....

  • linux 日期命令

    1.自动同步时间centos 2.设置时间 2016-02-01 3.查看时间 4.设置最新时间

  • CentOS 7 主机名访问

    1、设置静态IP CentOS 7 设置静态ip 2、设置主机名 echo "centos-100" > /etc...

  • 如何设置CentOS6.X的系统时间?

    如何设置CentOS6.X的系统时间? date命令改: date -s 20120523 //设置成201205...

  • Hadoop 集群搭建

    集群搭建 说明:基于centos 64位 1.同步时间 手动同步: 网络同步时间: 设置时区: 2.设置主机名 3...

  • VMware centos 6.9 连接物理机网络

    vmware 全局设置 虚拟机设置 centos

网友评论

      本文标题:centos时间设置

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