{"id":17481,"date":"2022-10-18T09:08:32","date_gmt":"2022-10-18T01:08:32","guid":{"rendered":"http:\/\/lrxjmw.cn\/?p=17481"},"modified":"2022-10-18T09:08:37","modified_gmt":"2022-10-18T01:08:37","slug":"sysarch","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/sysarch.html","title":{"rendered":"\u67e5\u770bLinux\u7cfb\u7edf\u67b6\u6784\u7c7b\u578b\u76845\u6761\u5e38\u7528\u547d\u4ee4"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u5f88\u591a\u65f6\u5019\u6211\u4eec\u90fd\u9700\u8981\u67e5\u770b\u5f53\u524d Linux \u7cfb\u7edf\u662f 32 \u4f4d\u8fd8\u662f 64 \u4f4d\u7cfb\u7edf\u67b6\u6784\u7c7b\u578b\uff0c\u672c\u6587\u4e2d\u6211\u5c06\u5411\u5927\u5bb6\u63a8\u8350 5 \u6761\u5e38\u7528\u547d\u4ee4\u3002\u65e0\u8bba\u4f60\u4f7f\u7528\u7684\u662f\u684c\u9762\u7248\u6216\u662f\u53ea\u88c5\u4e86\u6587\u672c\u754c\u9762\u7684 Linux \u73af\u5883\uff0c\u4ee5\u4e0b\u547d\u4ee4\u51e0\u4e4e\u53ef\u4ee5\u901a\u5403\u6240\u6709 Linux \u53d1\u884c\u7248\uff0c\u4f8b\u5982\uff1aRHEL\u3001CentOS\u3001Fedora\u3001Scientific Linux\u3001Debian\u3001Ubuntu\u3001Linux Mint\u3001OpenSUSE \u7b49\u7b49\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

\"sysarch-01\"<\/p>\n

 <\/p>\n

1. uname \u547d\u4ee4<\/strong><\/div>\n

uname -a \u547d\u4ee4\u53ef\u4ee5\u76f4\u63a5\u663e\u793a Linux \u7cfb\u7edf\u67b6\u6784\u7684\u547d\u4ee4\uff0c\u5b89\u51e0\u4e4e\u53ef\u4ee5\u5de5\u4f5c\u5728\u6240\u6709 Linux\/Unix \u7cfb\u7edf\u5f53\u4e2d\u3002<\/p>\n

\"sysarch-02\"<\/p>\n

2. dpkg \u547d\u4ee4<\/strong><\/div>\n

dpkg<\/strong> \u7684\u547d\u4ee4\u53ef\u7528\u4e8e\u67e5\u770b Debian\/ Ubuntu \u64cd\u4f5c\u7cfb\u7edf\u662f 32 \u4f4d\u8fd8\u662f 64 \u4f4d\uff0c\u6b64\u547d\u4ee4\u53ea\u9002\u7528\u4e8e\u57fa\u4e8e Debian \u548c Ubuntu \u7684 Linux \u53d1\u884c\u7248\u3002<\/p>\n

\u5728\u7ec8\u7aef\u4e2d\u6267\u884c\u5982\u4e0b\u547d\u4ee4\uff1a<\/p>\n

dpkg --print-architecture<\/pre>\n

\u5982\u679c\u5f53\u524d Linux \u662f 64 \u4f4d\u5219\u8f93\u51fa amd64\uff0c\u662f 32 \u4f4d\u5219\u4f1a\u8f93\u51fa i386\u3002<\/p>\n

3. getconf \u547d\u4ee4<\/strong><\/div>\n

getconf<\/strong> \u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u7cfb\u7edf\u53d8\u91cf\u914d\u7f6e\uff0c\u6211\u4eec\u4e5f\u53ef\u4f7f\u7528\u5982\u4e0b\u53c2\u6570\u6765\u67e5\u770b Linux \u7cfb\u7edf\u67b6\u6784\uff1a<\/p>\n

getconf LONG_BIT<\/pre>\n
4. arch \u547d\u4ee4<\/strong><\/div>\n

arch<\/strong> \u547d\u4ee4\u4e3b\u8981\u7528\u4e8e\u663e\u793a\u64cd\u4f5c\u7cfb\u7edf\u67b6\u6784\u7c7b\u578b\uff0c\u4e0e uname -m \u547d\u4ee4\u975e\u5e38\u7c7b\u4f3c\u3002\u5982\u679c\u8f93\u51fa x86_64 \u5219\u8868\u793a\u4e3a 64 \u4f4d\u7cfb\u7edf\uff0c\u5982\u679c\u8f93\u51fa i686 \u6216 i386 \u5219\u8868\u793a\u4e3a 32 \u4f4d\u7cfb\u7edf\u3002<\/p>\n

\"sysarch-03\"<\/p>\n

5. file \u547d\u4ee4<\/strong><\/div>\n

file<\/strong> \u547d\u4ee4\u53ef\u4ee5\u914d\u5408 \/sbin\/init \u8fd9\u4e2a\u7279\u6b8a\u53c2\u6570\u6765\u67e5\u770b\u7cfb\u7edf\u67b6\u6784\u7c7b\u578b\uff08\/sbin\/init \u5728 Ubuntu 15.10 \u91cc\u9762\u662f\u94fe\u63a5\u5230\/lib\/systemd\/systemd \u7684\uff09\uff1a<\/p>\n

file \/sbin\/init<\/pre>\n

\"sysarch-04\"<\/p>\n

\n

\u539f\u6587\u6765\u81ea\uff1ahttps:\/\/www.sysgeek.cn\/find-out-linux-system-32-or-64-bit\/<\/a><\/p>\n

\u672c\u6587\u5730\u5740\uff1a http:\/\/lrxjmw.cn\/sysarch.html<\/a>\u7f16\u8f91\uff1a\u674e\u5e05\uff0c\u5ba1\u6838\u5458\uff1a\u51af\u632f\u534e<\/span><\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"

\u5bfc\u8bfb \u5f88\u591a\u65f6\u5019\u6211\u4eec\u90fd\u9700\u8981\u67e5\u770b\u5f53\u524d Linux \u7cfb\u7edf\u662f 32 \u4f4d\u8fd8\u662f 64 \u4f4d\u7cfb\u7edf\u67b6\u6784\u7c7b\u578b\uff0c\u672c\u6587\u4e2d\u6211\u5c06\u5411\u5927\u5bb6\u63a8\u8350 […]<\/p>\n","protected":false},"author":63,"featured_media":17553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-17481","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/17481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=17481"}],"version-history":[{"count":9,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/17481\/revisions"}],"predecessor-version":[{"id":255211,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/17481\/revisions\/255211"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/17553"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=17481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=17481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=17481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}