{"id":7303,"date":"2020-08-28T12:58:39","date_gmt":"2020-08-28T04:58:39","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7303"},"modified":"2020-08-28T12:58:39","modified_gmt":"2020-08-28T04:58:39","slug":"sosreport","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/sosreport","title":{"rendered":"sosreport\u547d\u4ee4 – \u6536\u96c6\u5e76\u6253\u5305\u8bca\u65ad\u548c\u652f\u6301\u6570\u636e"},"content":{"rendered":"\n
sosreport\u547d\u4ee4\u4ece\u6b63\u5728\u8fd0\u884c\u7684\u7cfb\u7edf\u751f\u6210\u914d\u7f6e\u548c\u8bca\u65ad\u4fe1\u606f\u7684\u5b58\u6863\u3002\u5b58\u6863\u6587\u4ef6\u53ef\u4ee5\u5b58\u50a8\u5728\u672c\u5730\u6216\u96c6\u4e2d\uff0c\u4ee5\u4fbf\u8bb0\u5f55\u6216\u8ddf\u8e2a\uff0c\u4e5f\u53ef\u4ee5\u53d1\u9001\u7ed9\u6280\u672f\u652f\u6301\u4ee3\u8868\u3001\u5f00\u53d1\u4eba\u5458\u6216\u7cfb\u7edf\u7ba1\u7406\u5458\uff0c\u4ee5\u5e2e\u52a9\u8fdb\u884c\u6280\u672f\u6545\u969c\u67e5\u627e\u548c\u8c03\u8bd5\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>sosreport [\u53c2\u6570]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u5217\u51fa\u6240\u6709\u53ef\u7528\u7684\u63d2\u4ef6\u53ca\u5176\u9009\u9879\uff1a<\/p>\n\n\n\n \u4f7f\u7528-e\u53c2\u6570\uff0c\u542f\u7528\u6307\u5b9aapache.log\u63d2\u4ef6\uff1a<\/p>\n\n\n\n \u4f7f\u7528-n\u53c2\u6570\uff0c\u7981\u7528\u6307\u5b9ayum.yumlist\u63d2\u4ef6\uff1a<\/p>\n\n\n\n \u4f7f\u7528-a\u53c2\u6570\uff0c\u542f\u7528\u6240\u6709\u5217\u51fa\u6765\u7684\u63d2\u4ef6\uff1a<\/p>\n\n\n\n sosreport\u547d\u4ee4\u4ece\u6b63\u5728\u8fd0\u884c\u7684\u7cfb\u7edf\u751f\u6210\u914d\u7f6e\u548c\u8bca\u65ad\u4fe1\u606f\u7684\u5b58\u6863\u3002\u5b58\u6863\u6587\u4ef6\u53ef\u4ee5\u5b58\u50a8\u5728\u672c\u5730\u6216\u96c6\u4e2d\uff0c\u4ee5\u4fbf\u8bb0\u5f55\u6216\u8ddf\u8e2a\uff0c […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[7],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7303"}],"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=7303"}],"version-history":[{"count":4,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7303\/revisions"}],"predecessor-version":[{"id":7307,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7303\/revisions\/7307"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-l<\/td> \u5217\u51fa\u6240\u6709\u53ef\u7528\u7684\u63d2\u4ef6\u53ca\u5176\u9009\u9879<\/td><\/tr> -n<\/td> \u7981\u7528\u6307\u5b9a\u7684\u63d2\u4ef6<\/td><\/tr> -e<\/td> \u542f\u7528\u6307\u5b9a\u7684\u63d2\u4ef6<\/td><\/tr> -a<\/td> \u5bf9\u4e8e\u6240\u6709\u7684\u63d2\u4ef6\u542f\u7528\uff0c\u5c06\u6240\u6709\u5e03\u5c14\u9009\u9879\u8bbe\u7f6e\u4e3aTrue<\/td><\/tr> -v<\/td> \u589e\u52a0\u65e5\u5fd7\u8bb0\u5f55\u7684\u8be6\u7ec6\u7a0b\u5ea6<\/td><\/tr> --no-report<\/td> \u7981\u7528HTML\u62a5\u544a\u5199\u5165<\/td><\/tr> --config-file CONFIG<\/td> \u6307\u5b9a\u5907\u7528\u914d\u7f6e\u6587\u4ef6<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# sosreport -l<\/pre>\n\n\n\n
[root@linuxcool ~]# sosreport -e apache.log<\/pre>\n\n\n\n
[root@linuxcool ~]# sosreport -n yum.yumlist<\/pre>\n\n\n\n
[root@linuxcool ~]# sosreport -a<\/pre>\n","protected":false},"excerpt":{"rendered":"