{"id":286221,"date":"2023-10-27T20:09:24","date_gmt":"2023-10-27T12:09:24","guid":{"rendered":"https:\/\/lrxjmw.cn\/rhzlxtzzkxtd.html"},"modified":"2023-10-27T20:09:24","modified_gmt":"2023-10-27T12:09:24","slug":"rhzlxtzzkxtd","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/rhzlxtzzkxtd.html","title":{"rendered":"\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e2d\u67e5\u770b\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\uff0c\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u83b7\u53d6"},"content":{"rendered":"

\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Linux<\/a>\u7cfb\u7edf<\/a>\u4e2d\u67e5\u770b\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4linux\u67e5\u770b\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4<\/strong>\uff0c\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u83b7\u53d6\u8fd9\u4e00\u91cd\u8981\u4fe1\u606f\u3002<\/p>\n

1.\u4f7f\u7528\u547d\u4ee4<\/a>\u884c\u67e5\u8be2\uff1a<\/b><\/p>\n

\u6253\u5f00\u7ec8\u7aef\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\nsudo dumpe2fs $(mount | grep 'on \/'| awk '{print $1}')| grep 'Filesystem created'\n<\/pre>\n<\/p>\n

\u547d\u4ee4\u6267\u884c\u540e\uff0c\u7cfb\u7edf\u5c06\u663e\u793a\u6587\u4ef6\u7cfb\u7edf\u7684\u521b\u5efa\u65f6\u95f4linux\u8bfe\u7a0b\uff0c\u5373\u4e3a\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\u3002<\/p>\n

2.\u67e5\u770b\/var\/log\/installer\u76ee\u5f55\uff1a<\/b><\/p>\n

\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n

\n

\nls -lt \/var\/log\/installer\n<\/pre>\n<\/p>\n

\u7cfb\u7edf\u5c06\u6309\u7167\u65f6\u95f4\u987a\u5e8f\u5217\u51fa\u8be5\u76ee\u5f55\u4e0b\u7684\u6587\u4ef6\uff0c\u5176\u4e2d\u6700\u65e9\u521b\u5efa\u7684\u6587\u4ef6\u5373\u4e3a\u7cfb\u7edf\u5b89\u88c5\u65f6\u751f\u6210\u7684\u65e5\u5fd7\u6587\u4ef6\uff0c\u4ece\u4e2d\u53ef\u4ee5\u627e\u5230\u5b89\u88c5\u65f6\u95f4\u3002<\/p>\n

3.\u68c0\u67e5\/var\/log\/dpkg.log\u6587\u4ef6\uff1a<\/b><\/p>\n

\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u8be5\u6587\u4ef6\uff1a<\/p>\n

\n

\ncat \/var\/log\/dpkg.log | grep 'install '\n<\/pre>\n<\/p>\n

\u5728\u8f93\u51fa\u7ed3\u679c\u4e2d\uff0c\u53ef\u4ee5\u627e\u5230\u5305\u542b\"install \"\u5173\u952e\u5b57\u7684\u884c\uff0c\u8fd9\u4e9b\u884c\u8bb0\u5f55\u4e86\u8f6f\u4ef6\u5305\u7684\u5b89\u88c5\u64cd\u4f5c\u548c\u65f6\u95f4\u3002\u901a\u8fc7\u67e5\u770b\u6700\u65e9\u7684\u4e00\u6761\u8bb0\u5f55linux\u67e5\u770b\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4<\/strong>\uff0c\u53ef\u4ee5\u5f97\u77e5\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\u3002<\/p>\n

4.\u67e5\u770b\/var\/log\/syslog\u6587\u4ef6\uff1a<\/b><\/p>\n

\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u8be5\u6587\u4ef6\uff1a<\/p>\n

\n

\ncat \/var\/log\/syslog | grep 'install '\n<\/pre>\n<\/p>\n

\u540c\u6837\u5730\uff0c\u5728\u8f93\u51fa\u7ed3\u679c\u4e2d\u627e\u5230\u5305\u542b\"install \"\u5173\u952e\u5b57\u7684\u884c\u4e2d\u6807linux\uff0c\u5373\u53ef\u83b7\u5f97\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\u7684\u4fe1\u606f\u3002<\/p>\n

5.\u4f7f\u7528inxi\u5de5\u5177\uff1a<\/b><\/p>\n

\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5inxi\u5de5\u5177\uff1a<\/p>\n

\n

\nsudo apt-get install inxi\n<\/pre>\n<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\uff1a<\/p>\n

\n

\ninxi -F| grep 'System install'\n<\/pre>\n<\/p>\n

\u5de5\u5177\u5c06\u8f93\u51fa\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\u3002<\/p>\n

6.\u68c0\u67e5\/var\/log\/wtmp\u6587\u4ef6\uff1a<\/b><\/p>\n

\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u8be5\u6587\u4ef6\uff1a<\/p>\n

\n

\nlast -x| grep 'reboot'\n<\/pre>\n<\/p>\n

\u5728\u8f93\u51fa\u7ed3\u679c\u4e2d\uff0c\u627e\u5230\u6700\u65e9\u7684\u4e00\u6761\u5305\u542b\"reboot\"\u5173\u952e\u5b57\u7684\u8bb0\u5f55\uff0c\u5373\u53ef\u5f97\u77e5\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\u3002<\/p>\n

7.\u4f7f\u7528dmidecode\u5de5\u5177\uff1a<\/b><\/p>\n

\u5728\u7ec8\u7aef\u4e2d\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u5b89\u88c5dmidecode\u5de5\u5177\uff1a<\/p>\n

\n

\nsudo apt-get install dmidecode\n<\/pre>\n<\/p>\n

\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\uff1a<\/p>\n

\n

\nsudo dmidecode -s bios-release-date\n<\/pre>\n<\/p>\n

\u5de5\u5177\u5c06\u8f93\u51faBIOS\u91ca\u653e\u65e5\u671f\uff0c\u901a\u5e38\u4e0e\u7cfb\u7edf\u7684\u5b89\u88c5\u65e5\u671f\u76f8\u540c\u3002<\/p>\n

8.\u67e5\u770b\/var\/log\/dmesg\u6587\u4ef6\uff1a<\/b><\/p>\n

\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u770b\u8be5\u6587\u4ef6\uff1a<\/p>\n

\n

\ncat \/var\/log\/dmesg | grep 'BIOS-e820:['\n<\/pre>\n<\/p>\n

\u5728\u8f93\u51fa\u7ed3\u679c\u4e2d\u627e\u5230\u6700\u65e9\u7684\u4e00\u884c\u5305\u542b\"BIOS-e820:[\"\u5173\u952e\u5b57\u7684\u8bb0\u5f55\uff0c\u5176\u4e2d\u7684\u65e5\u671f\u5373\u4e3a\u7cfb\u7edf\u7684\u5b89\u88c5\u65e5\u671f\u3002<\/p>\n

\u4ee5\u4e0a\u662f\u67e5\u8be2Linux\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\u76848\u79cd\u65b9\u6cd5\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u5927\u5bb6\u3002\u8bb0\u4f4f\u8fd9\u4e9b\u65b9\u6cd5\uff0c\u4ee5\u5907\u4e0d\u65f6\u4e4b\u9700\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"

\u672c\u6587\u5c06\u4ecb\u7ecd\u5982\u4f55\u5728Linux\u7cfb\u7edf\u4e2d\u67e5\u770b\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\uff0c\u5e2e\u52a9\u8bfb\u8005\u5feb\u901f\u83b7\u53d6\u8fd9\u4e00\u91cd\u8981\u4fe1\u606f\u3002\u901a\u8fc7\u67e5\u770b\u6700\u65e9\u7684\u4e00\u6761\u8bb0\u5f55\uff0c\u53ef\u4ee5\u5f97\u77e5\u7cfb\u7edf\u7684\u5b89\u88c5\u65f6\u95f4\u3002\u5173\u952e\u5b57\u7684\u884c\uff0c\u5373\u53ef\u83b7\u5f97\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\u7684\u4fe1\u606f\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\uff1a\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\u67e5\u8be2\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\uff1a\u4ee5\u4e0a\u662f\u67e5\u8be2Linux\u7cfb\u7edf\u5b89\u88c5\u65f6\u95f4\u76848\u79cd\u65b9\u6cd5\uff0c\u5e0c\u671b\u80fd\u5e2e\u52a9\u5230\u5927\u5bb6\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[988],"tags":[999],"class_list":["post-286221","post","type-post","status-publish","format-standard","hentry","category-tougao","tag-999"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/286221","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\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=286221"}],"version-history":[{"count":0,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/286221\/revisions"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=286221"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=286221"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=286221"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}