{"id":625,"date":"2014-07-27T15:50:53","date_gmt":"2014-07-27T07:50:53","guid":{"rendered":"http:\/\/www.yusian.com\/blog\/?p=625"},"modified":"2016-07-16T14:05:19","modified_gmt":"2016-07-16T06:05:19","slug":"centos%e5%b8%b8%e7%94%a8%e5%88%b0%e7%9a%84%e6%9f%a5%e7%9c%8b%e7%b3%bb%e7%bb%9f%e5%91%bd%e4%bb%a4","status":"publish","type":"post","link":"https:\/\/www.yusian.com\/blog\/centos\/2014\/07\/27\/155053625.html","title":{"rendered":"CentOS\u5e38\u7528\u5230\u7684\u67e5\u770b\u7cfb\u7edf\u547d\u4ee4"},"content":{"rendered":"<pre line=\"1\"># uname -a               # \u67e5\u770b\u5185\u6838\/\u64cd\u4f5c\u7cfb\u7edf\/CPU\u4fe1\u606f\n# head -n 1 \/etc\/issue   # \u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c\n# cat \/proc\/cpuinfo      # \u67e5\u770bCPU\u4fe1\u606f\n# hostname               # \u67e5\u770b\u8ba1\u7b97\u673a\u540d\n# lspci -tv              # \u5217\u51fa\u6240\u6709PCI\u8bbe\u5907\n# lsusb -tv              # \u5217\u51fa\u6240\u6709USB\u8bbe\u5907\n# lsmod                  # \u5217\u51fa\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757\n# env                    # \u67e5\u770b\u73af\u5883\u53d8\u91cf\n\n\u8d44\u6e90\n# free -m                # \u67e5\u770b\u5185\u5b58\u4f7f\u7528\u91cf\u548c\u4ea4\u6362\u533a\u4f7f\u7528\u91cf\n# df -h                  # \u67e5\u770b\u5404\u5206\u533a\u4f7f\u7528\u60c5\u51b5\n# du -sh <\u76ee\u5f55\u540d>         # \u67e5\u770b\u6307\u5b9a\u76ee\u5f55\u7684\u5927\u5c0f\n# grep MemTotal \/proc\/meminfo   # \u67e5\u770b\u5185\u5b58\u603b\u91cf\n# grep MemFree \/proc\/meminfo    # \u67e5\u770b\u7a7a\u95f2\u5185\u5b58\u91cf\n# uptime                 # \u67e5\u770b\u7cfb\u7edf\u8fd0\u884c\u65f6\u95f4\u3001\u7528\u6237\u6570\u3001\u8d1f\u8f7d\n# cat \/proc\/loadavg      # \u67e5\u770b\u7cfb\u7edf\u8d1f\u8f7d\n\n\u78c1\u76d8\u548c\u5206\u533a\n# mount | column -t      # \u67e5\u770b\u6302\u63a5\u7684\u5206\u533a\u72b6\u6001\n# fdisk -l               # \u67e5\u770b\u6240\u6709\u5206\u533a\n# swapon -s              # \u67e5\u770b\u6240\u6709\u4ea4\u6362\u5206\u533a\n# hdparm -i \/dev\/hda     # \u67e5\u770b\u78c1\u76d8\u53c2\u6570(\u4ec5\u9002\u7528\u4e8eIDE\u8bbe\u5907)\n# dmesg | grep IDE       # \u67e5\u770b\u542f\u52a8\u65f6IDE\u8bbe\u5907\u68c0\u6d4b\u72b6\u51b5\n\n\u7f51\u7edc\n# ifconfig               # \u67e5\u770b\u6240\u6709\u7f51\u7edc\u63a5\u53e3\u7684\u5c5e\u6027\n# iptables -L            # \u67e5\u770b\u9632\u706b\u5899\u8bbe\u7f6e\n# route -n               # \u67e5\u770b\u8def\u7531\u8868\n# netstat -lntp          # \u67e5\u770b\u6240\u6709\u76d1\u542c\u7aef\u53e3\n# netstat -antp          # \u67e5\u770b\u6240\u6709\u5df2\u7ecf\u5efa\u7acb\u7684\u8fde\u63a5\n# netstat -s             # \u67e5\u770b\u7f51\u7edc\u7edf\u8ba1\u4fe1\u606f\n\n\u8fdb\u7a0b\n# ps -ef                 # \u67e5\u770b\u6240\u6709\u8fdb\u7a0b\n# top                    # \u5b9e\u65f6\u663e\u793a\u8fdb\u7a0b\u72b6\u6001\n\n\u7528\u6237\n# w                          # \u67e5\u770b\u6d3b\u52a8\u7528\u6237\n# id <\u7528\u6237\u540d>                 # \u67e5\u770b\u6307\u5b9a\u7528\u6237\u4fe1\u606f\n# last                       # \u67e5\u770b\u7528\u6237\u767b\u5f55\u65e5\u5fd7\n# cut -d: -f1 \/etc\/passwd    # \u67e5\u770b\u7cfb\u7edf\u6240\u6709\u7528\u6237\n# cut -d: -f1 \/etc\/group     # \u67e5\u770b\u7cfb\u7edf\u6240\u6709\u7ec4\n# crontab -l                 # \u67e5\u770b\u5f53\u524d\u7528\u6237\u7684\u8ba1\u5212\u4efb\u52a1\n        \n\u670d\u52a1\n# chkconfig --list           # \u5217\u51fa\u6240\u6709\u7cfb\u7edf\u670d\u52a1\n# chkconfig --list | grep on # \u5217\u51fa\u6240\u6709\u542f\u52a8\u7684\u7cfb\u7edf\u670d\u52a1<\/pre>\n","protected":false},"excerpt":{"rendered":"<p># uname -a # \u67e5\u770b\u5185\u6838\/\u64cd\u4f5c\u7cfb\u7edf\/CPU\u4fe1\u606f # head -n 1 \/etc\/issue # \u67e5\u770b\u64cd\u4f5c\u7cfb\u7edf\u7248\u672c # cat \/proc\/cpuinfo # \u67e5\u770bCPU\u4fe1\u606f # hostname # \u67e5\u770b\u8ba1\u7b97\u673a\u540d # lspci -tv # \u5217\u51fa\u6240\u6709PCI\u8bbe\u5907 # lsusb -tv # \u5217\u51fa\u6240\u6709USB\u8bbe\u5907 # lsmod # \u5217\u51fa\u52a0\u8f7d\u7684\u5185\u6838\u6a21\u5757 # env # \u67e5\u770b\u73af\u5883\u53d8\u91cf \u8d44\u6e90 # free -m # \u67e5\u770b\u5185\u5b58\u4f7f\u7528\u91cf\u548c\u4ea4\u6362\u533a\u4f7f\u7528\u91cf # df -h # \u67e5\u770b\u5404\u5206\u533a\u4f7f\u7528\u60c5\u51b5 # du -sh # \u67e5\u770b\u6307\u5b9a\u76ee\u5f55\u7684\u5927\u5c0f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[21],"tags":[8],"class_list":["post-625","post","type-post","status-publish","format-standard","hentry","category-centos","tag-linux"],"_links":{"self":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/625","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/comments?post=625"}],"version-history":[{"count":0,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/posts\/625\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/media?parent=625"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/categories?post=625"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.yusian.com\/blog\/wp-json\/wp\/v2\/tags?post=625"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}