{"id":1985,"date":"2019-05-16T23:24:20","date_gmt":"2019-05-16T15:24:20","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=1985"},"modified":"2019-05-19T15:52:55","modified_gmt":"2019-05-19T07:52:55","slug":"uptime","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/uptime","title":{"rendered":"uptime\u547d\u4ee4 – \u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d"},"content":{"rendered":"\n

Linux\u7cfb\u7edf\u4e2d\u7684uptime\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u83b7\u53d6\u4e3b\u673a\u8fd0\u884c\u65f6\u95f4\u548c\u67e5\u8be2Linux\u7cfb\u7edf\u8d1f\u8f7d\u7b49\u4fe1\u606f\u3002<\/p>\n\n\n\n

uptime\u547d\u4ee4\u53ef\u4ee5\u663e\u793a\u7cfb\u7edf\u5df2\u7ecf\u8fd0\u884c\u4e86\u591a\u957f\u65f6\u95f4\uff0c\u4fe1\u606f\u663e\u793a\u4f9d\u6b21\u4e3a\uff1a\u73b0\u5728\u65f6\u95f4\u3001\u7cfb\u7edf\u5df2\u7ecf\u8fd0\u884c\u4e86\u591a\u957f\u65f6\u95f4\u3001\u76ee\u524d\u6709\u591a\u5c11\u767b\u5f55\u7528\u6237\u3001\u7cfb\u7edf\u5728\u8fc7\u53bb\u76841\u5206\u949f\u30015\u5206\u949f\u548c15\u5206\u949f\u5185\u7684\u5e73\u5747\u8d1f\u8f7d\u3002 uptime\u547d\u4ee4\u7528\u6cd5\u5341\u5206\u7b80\u5355\uff0c\u76f4\u63a5\u8f93\u5165uptime\u5373\u53ef\u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d\u60c5\u51b5\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f<\/strong>\uff1auptime [\u53c2\u6570]<\/p>\n\n\n\n

\u5e38\u7528\u53c2\u6570<\/strong>:<\/p>\n\n\n\n
-p<\/td>\u4ee5\u6f02\u4eae\u7684\u683c\u5f0f\u663e\u793a\u673a\u5668\u6b63\u5e38\u8fd0\u884c\u7684\u65f6\u95f4<\/td><\/tr>
-s<\/td>\u7cfb\u7edf\u81ea\u5f00\u59cb\u8fd0\u884c\u65f6\u95f4\uff0c\u683c\u5f0f\u4e3ayyyy-mm-dd hh:mm:ss<\/td><\/tr>
-h<\/td>\u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n

\u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n

\u663e\u793a\u5f53\u524d\u7cfb\u7edf\u8fd0\u884c\u8d1f\u8f7d\u60c5\u51b5\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# uptime \n15:23:22 up 2 days,  5:13,  3 users,  load average: 0.12, 0.04, 0.05<\/pre>\n\n\n\n

\u4f7f\u7528-p\u53c2\u6570\u663e\u793a\u673a\u5668\u6b63\u5e38\u8fd0\u884c\u7684\u65f6\u95f4\uff1a <\/p>\n\n\n\n

[root@linuxcool ~]# uptime -p\nup 2 days, 5 hours, 15 minutes<\/pre>\n\n\n\n

\u4f7f\u7528-s\u53c2\u6570\u663e\u793a\u673a\u5668\u542f\u52a8\u65f6\u95f4\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# uptime -s\n2019-05-09 10:09:43<\/pre>\n","protected":false},"excerpt":{"rendered":"

Linux\u7cfb\u7edf\u4e2d\u7684uptime\u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u83b7\u53d6\u4e3b\u673a\u8fd0\u884c\u65f6\u95f4\u548c\u67e5\u8be2Linux\u7cfb\u7edf\u8d1f\u8f7d\u7b49\u4fe1\u606f\u3002 uptime\u547d\u4ee4\u53ef […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1985"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=1985"}],"version-history":[{"count":5,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1985\/revisions"}],"predecessor-version":[{"id":2155,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/1985\/revisions\/2155"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=1985"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=1985"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=1985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}