{"id":7933,"date":"2016-08-25T11:33:50","date_gmt":"2016-08-25T03:33:50","guid":{"rendered":"http:\/\/jpuyy.com\/?p=7933"},"modified":"2016-08-25T11:39:48","modified_gmt":"2016-08-25T03:39:48","slug":"timedatectl","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=7933","title":{"rendered":"timedatectl"},"content":{"rendered":"<p>centos7 \u4e2d\u67e5\u770b\u65f6\u533a<\/p>\n<pre>\r\n[vagrant@localhost ~]$ timedatectl status\r\n      Local time: Wed 2016-08-24 11:04:27 EDT\r\n  Universal time: Wed 2016-08-24 15:04:27 UTC\r\n        RTC time: Wed 2016-08-24 15:04:27\r\n       Time zone: America\/New_York (EDT, -0400)\r\n     NTP enabled: n\/a\r\nNTP synchronized: no\r\n RTC in local TZ: no\r\n      DST active: yes\r\n Last DST change: DST began at\r\n                  Sun 2016-03-13 01:59:59 EST\r\n                  Sun 2016-03-13 03:00:00 EDT\r\n Next DST change: DST ends (the clock jumps one hour backwards) at\r\n                  Sun 2016-11-06 01:59:59 EDT\r\n                  Sun 2016-11-06 01:00:00 EST\r\n<\/pre>\n<p>\u66f4\u6539\u65f6\u533a(sudo)<\/p>\n<pre>\r\ntimedatectl set-timezone Asia\/Shanghai\r\n<\/pre>\n<p>\u8bbe\u7f6e\u65f6\u95f4<\/p>\n<pre>\r\ntimedatectl set-time '2013-06-02 23:26:00'\r\n<\/pre>\n<p>\u8bbe\u7f6e ntp \u65f6\u95f4\u540c\u6b65<\/p>\n<pre>timedatectl set-ntp yes<\/pre>\n<p>\u5b98\u65b9\u6587\u6863<br \/>\nhttps:\/\/access.redhat.com\/documentation\/en-US\/Red_Hat_Enterprise_Linux\/7\/html\/System_Administrators_Guide\/chap-Configuring_the_Date_and_Time.html<\/p>\n","protected":false},"excerpt":{"rendered":"<p>centos7 \u4e2d\u67e5\u770b\u65f6\u533a [vagrant@localhost ~]$ timedatectl status Local time: Wed 2016-08-24 11:04:27 EDT Universal time: Wed 2016-08-24 15:04:27 UTC RTC time: Wed 2016-08-24 15:04:27 Time zone: America\/New_York (EDT, -0400) NTP enabled: n\/a NTP synchronized: no RTC in local TZ: no DST active: yes Last DST change: DST began at Sun 2016-03-13 01:59:59 EST Sun 2016-03-13 03:00:00 [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[],"class_list":["post-7933","post","type-post","status-publish","format-standard","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7933","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7933"}],"version-history":[{"count":6,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7933\/revisions"}],"predecessor-version":[{"id":7939,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7933\/revisions\/7939"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7933"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7933"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7933"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}