{"id":8355,"date":"2020-07-18T20:44:57","date_gmt":"2020-07-18T12:44:57","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=8355"},"modified":"2020-07-18T20:44:59","modified_gmt":"2020-07-18T12:44:59","slug":"ifplugstatus","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ifplugstatus","title":{"rendered":"ifplugstatus\u547d\u4ee4 – \u68c0\u67e5\u7f51\u7ebf\u662f\u5426\u5df2\u63d2\u5230\u5728\u7f51\u7edc\u63a5\u53e3"},"content":{"rendered":"\n

ifplugstatus\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u72b6\u6001\uff0c\u6216\u662f\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u7684\u72b6\u6001\u3002<\/p>\n\n\n\n

\u8fd9\u4e2a\u547d\u4ee4Ubuntu\u6ca1\u6709\u9884\u88c5\uff0c\u901a\u8fc7\u4e0b\u9762\u7684\u547d\u4ee4\u6765\u5b89\u88c5
sudo apt-get install ifplugd\u3002<\/p>\n\n\n\n

\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ifplugstatus<\/p>\n\n\n\n

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

\u663e\u793a\u63a5\u53e3\u72b6\u6001\uff1a<\/p>\n\n\n\n

[root@linuxcool ~]# ifplugstatus\nlo:link beat detected\nwlan0:link beat detected\neth0:unplugged<\/pre>\n\n\n\n

\u67e5\u770b\u4e0a\u9762\u7684\u5feb\u7167, \u5b83\u663e\u793a\u4e86\u6240\u6709\u63a5\u53e3\u7684\u72b6\u6001\u3002\u5728\u8fd9\u91cc, \u68c0\u6d4b\u5230\u94fe\u63a5\u4fe1\u53f7\u610f\u5473\u7740\u5df2\u5c06\u5176\u63d2\u5165\u3002\u5728\u6211\u4eec\u7684\u7cfb\u7edf\u4e2d, lo\u548cwlan0\u5df2\u63d2\u5165, \u800ceth0\u672a\u63d2\u5165\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

ifplugstatus\u547d\u4ee4\u53ef\u4ee5\u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u72b6\u6001\uff0c\u6216\u662f\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u7684\u72b6\u6001\u3002 \u8fd9\u4e2a\u547d\u4ee4Ubuntu\u6ca1\u6709\u9884\u88c5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8355"}],"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=8355"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8355\/revisions"}],"predecessor-version":[{"id":8364,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/8355\/revisions\/8364"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=8355"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=8355"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=8355"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}