{"id":1702,"date":"2011-10-04T13:13:00","date_gmt":"2011-10-04T05:13:00","guid":{"rendered":""},"modified":"2013-11-22T09:22:10","modified_gmt":"2013-11-22T01:22:10","slug":"linux-%e7%94%a8%e5%91%bd%e4%bb%a4%e8%a1%8c%e6%9f%a5%e7%9c%8b%e7%a1%ac%e4%bb%b6%e4%bf%a1%e6%81%af","status":"publish","type":"post","link":"https:\/\/kyle.ai\/blog\/1702.html","title":{"rendered":"Linux \u7528\u547d\u4ee4\u884c\u67e5\u770b\u786c\u4ef6\u4fe1\u606f"},"content":{"rendered":"<p>linux \u67e5\u770b\u786c\u4ef6\u4fe1\u606f\uff1aproc<\/p>\n<div>\n<p>\u4f7f\u7528\/proc\u67e5\u770b\u7684\u786c\u4ef6\u4fe1\u606f\u867d\u7136\u4e30\u5bcc\uff0c\u4f46\u662f\u53ef\u8bfb\u6027\u4e0d\u597d\uff0c\u5c24\u5176\u662f\u6211\u8fd9\u6837\u7684\u83dc\u9e1f\uff0c\u53ef\u8c13\u5929\u6587\uff01<\/p>\n<p>cat \/proc\/cpuinfo<br \/>\n#\u67e5\u770bCPU\u4fe1\u606f\uff0c\u5185\u5bb9\u5f88\u5168\u54e6\uff01<\/p>\n<p>cat \/proc\/meminfo<br \/>\n#\u67e5\u770b\u5185\u5b58\u4fe1\u606f\u3002<\/p>\n<p>cat \/proc\/ioports<br \/>\n#\u67e5\u770bIO\u7aef\u53e3<\/p>\n<p>cat \/proc\/swaps<br \/>\n#\u67e5\u770b\u4ea4\u6362\u5206\u533a\u4fe1\u606f(\/proc)<\/p>\n<p>cat \/proc\/interrupts<br \/>\n#\u4e2d\u65ad\u4fe1\u606f<\/p>\n<p>cat \/proc\/partitions<br \/>\n#\u67e5\u770b\u78c1\u76d8\u5206\u533a<\/p>\n<p>cat \/proc\/bus\/usb\/devices<br \/>\n#\u67e5\u770bUSB\u8bbe\u5907<\/p>\n<p>cat \/proc\/bus\/input\/devices<br \/>\n#\u67e5\u770b\u8f93\u5165\u8bbe\u5907\uff1a\u952e\u76d8\u9f20\u6807<\/p>\n<p>cat \/proc\/bus\/pci\/devices<br \/>\n#\u67e5\u770bPCI\u8bbe\u5907<\/p>\n<p>cat \/proc\/loadavg<br \/>\n#\u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d<\/p>\n<p>cat \/var\/log\/demsg<br \/>\n#\u67e5\u770b\u5f00\u673a\u68c0\u67e5\u7684\u786c\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528grep\u8fc7\u8651\uff1aeth,cpu,mem,pci,usb,vga,sda\u2026\u2026<\/p>\n<p>linux \u67e5\u770b\u786c\u4ef6\u4fe1\u606f\uff1a\u7ec8\u7aef\u547d\u4ee4\u884c<\/p>\n<p>\u4f7f\u7528\u7ec8\u7aef\u547d\u4ee4\u884c\u67e5\u770b\u7684\u786c\u4ef6\u4fe1\u606f\u53ef\u8bfb\u6027\u597d\u5f88\u591a\u4e86\uff0c\u800c\u4e14\u4e5f\u6bd4\u8f83\u4e30\u5bcc\u3002<\/p>\n<p>lscpu<br \/>\n#\u67e5\u770bCPU\u4fe1\u606f<\/p>\n<p>lspci<br \/>\n#\u67e5\u770bPCI\u8bbe\u5907<\/p>\n<p>lsusb<br \/>\n#\u67e5\u770bUSB\u8bbe\u5907<\/p>\n<p>vmstat<br \/>\n#\u62a5\u544a\u865a\u62df\u5185\u5b58\u7edf\u8ba1\u4fe1\u606f<\/p>\n<p>fdisk -l<br \/>\n#\u67e5\u770b\u5206\u533a\u4fe1\u606f<\/p>\n<p>hdparm -i \/dev\/sda<br \/>\n#\u67e5\u770b\u78c1\u76d8\u53c2\u6570<\/p>\n<p>df -h<br \/>\n#\u67e5\u770b\u78c1\u76d8\u5206\u4fe1\u606f<\/p>\n<p>dmidecode<br \/>\n#\u8bfb\u53d6\u7cfb\u7edfDMI\u8868\u6765\u663e\u793a\u786c\u4ef6\u548cBIOS\u4fe1\u606f\u3002<\/p>\n<p>lsmod<br \/>\n#\u5f53\u524d\u52a0\u8f7d\u7684\u9a71\u52a8<\/p>\n<p>dmesg<br \/>\n#\u67e5\u770b\u5f00\u673a\u68c0\u67e5\u7684\u786c\u4ef6\uff0c\u53ef\u4ee5\u4f7f\u7528grep\u8fc7\u8651\uff1aeth,cpu,mem,pci,usb,vga,sda\u2026\u2026<\/p>\n<p>uptime<br \/>\n#\u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>linux \u67e5\u770b\u786c\u4ef6\u4fe1\u606f\uff1aproc \u4f7f\u7528\/proc\u67e5\u770b\u7684\u786c\u4ef6\u4fe1\u606f\u867d\u7136\u4e30\u5bcc\uff0c\u4f46\u662f\u53ef\u8bfb\u6027\u4e0d\u597d\uff0c\u5c24\u5176\u662f\u6211\u8fd9\u6837\u7684\u83dc\u9e1f\uff0c [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-1702","post","type-post","status-publish","format-standard","hentry","category-skill"],"_links":{"self":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1702","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/comments?post=1702"}],"version-history":[{"count":1,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1702\/revisions"}],"predecessor-version":[{"id":5037,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/posts\/1702\/revisions\/5037"}],"wp:attachment":[{"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/media?parent=1702"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/categories?post=1702"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kyle.ai\/blog\/wp-json\/wp\/v2\/tags?post=1702"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}