{"id":4947,"date":"2024-10-05T09:01:01","date_gmt":"2024-10-05T01:01:01","guid":{"rendered":""},"modified":"2024-10-05T09:01:01","modified_gmt":"2024-10-05T01:01:01","slug":"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00","status":"publish","type":"post","link":"https:\/\/mushiming.com\/4947.html","title":{"rendered":"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00"},"content":{"rendered":"<div style=\"font-size:16px;\">\n<p>LEP\u5de5\u5177\u5165\u95e8<\/p>\n<p>\u7ed9\u5927\u5bb6\u63a8\u8350\u4e2a\u5b8b\u5b9d\u534e\u8001\u5e08\u51fa\u54c1\u7684\u5c0f\u5de5\u5177<\/p>\n<p>\u76f8\u5173\u6587\u6863:<\/p>\n<p>LEP\u7684\u4ecb\u7ecd\uff0c\u5927\u5bb6\u76f4\u63a5\u770b\u4e0a\u9762\u7684\u6587\u6863\u5373\u53ef\u3002<\/p>\n<p>\u4e0b\u9762\u662f\u6211\u8bb0\u5f55\u7684\u5b89\u88c5\u90e8\u7f72\u8fc7\u7a0b<\/p>\n<p>\u73af\u5883\uff1aCentOS7.7<\/p>\n<p>IP: 10.10.11.11<\/p>\n<p>\u5b89\u88c5lepdyum&nbsp;install&nbsp;&nbsp;libev&nbsp;libev-devel&nbsp;&nbsp;-y<\/p>\n<p>yum&nbsp;install&nbsp;perf&nbsp;&nbsp;#&nbsp;\u5efa\u8bae\u4e5f\u5b89\u88c5\u4e0bperf\u5de5\u5177<\/p>\n<p>cd&nbsp;\/root\/<\/p>\n<p>git&nbsp;clone&nbsp;https:\/\/github.com\/linuxep\/lepd.git<\/p>\n<p>cd&nbsp;lepd<\/p>\n<p>make<\/p>\n<p>.\/guardian.sh&nbsp;\u5373\u53ef\u5728\u524d\u53f0\u542f\u52a8lepd\u8fdb\u7a0b<\/p>\n<p>\u5b89\u88c5lepv\u5b98\u7f51\u5730\u5740\uff1a<\/p>\n<p>\u67092\u79cd\u5b89\u88c5\u65b9\u5f0f\uff0c\u4e00\u822c\u6211\u4eec\u5efa\u8bae\u4f7f\u7528docker\u65b9\u5f0f\u66f4\u7b80\u5355\u4e9b<\/p>\n<p>systemctl&nbsp;start&nbsp;docker<\/p>\n<p>cd&nbsp;\/root\/<\/p>\n<p>git&nbsp;clone&nbsp;&nbsp;https:\/\/github.com\/linuxep\/lepv.git<\/p>\n<p>cd&nbsp;lepv\/<\/p>\n<p>.\/buildImage.sh<\/p>\n<p>.\/runContainer.sh<\/p>\n<p>ss&nbsp;-lntp&nbsp;|&nbsp;grep&nbsp;80<\/p>\n<p>\u786e\u8ba4\u542f\u52a8\u540e\uff0c\u6211\u4eec\u6d4f\u89c8\u5668\u8bbf\u95ee\u4e0b&nbsp;http:\/\/10.10.11.11<\/p>\n<p>\u7136\u540e\uff0c\u5728\u53f3\u4e0a\u65b9\u7684\u6846\u5185\uff0c\u8f93\u5165 lepd\u6240\u5728\u7684\u8282\u70b9\u5730\u5740 (\u6211\u4eec\u8fd9\u91cc\u8fd8\u662f 10.10.11.11)<\/p>\n<p>\u7136\u540e\uff0c\u5c31\u53ef\u4ee5\u770b\u5230\u4e0b\u56fe\u8fd9\u4e2a\u6837\u5b50\u4e86\u3002<\/p>\n<p align=\"center\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/img_convert\/1937086558b46c7f8749af0a5dcc1a75.png\" =\"\" =\"1937086558b46c7f8749af0a5dcc1a75.png\" alt=\"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00 (https:\/\/mushiming.com\/)  \u7b2c1\u5f20\" title=\"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00  \u7b2c1\u5f20-\u7a46\u4e16\u660e\u535a\u5ba2\" ><\/p>\n<p align=\"center\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/img_convert\/42b5f2484d83fcbe51fd75c247f80fb8.png\" =\"\" =\"42b5f2484d83fcbe51fd75c247f80fb8.png\" alt=\"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00 (https:\/\/mushiming.com\/)  \u7b2c2\u5f20\" title=\"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00  \u7b2c2\u5f20-\u7a46\u4e16\u660e\u535a\u5ba2\" ><\/p>\n<p>\u6211\u4eec\u53ef\u4ee5\u5728lepd\u548clepv\u8fd0\u884c\u671f\u95f4\uff0c\u6267\u884c\u4e0b execsnoop (\u8fd9\u662f\u4e2abcc\u5de5\u5177\u7684\u4ecb\u7ecd\u53ef\u4ee5\u770b\u5230\u9ad8\u6027\u80fd\u7c7b\u76ee\u7684blog)\uff0c\u53ef\u4ee5\u770b\u5230\u5f53\u524d\u7cfb\u7edf\u5728\u540e\u53f0\u8fd0\u884c\u7684\u54ea\u4e9b\u547d\u4ee4(\u53ef\u4ee5\u770b\u5230\u5b9e\u9645\u4e0a\u5c31\u662f\u4e9bshell\u547d\u4ee4\u548cperf\u547d\u4ee4\u7ec4\u5408)<\/p>\n<p align=\"center\"><img decoding=\"async\" src=\"https:\/\/img-blog.csdnimg.cn\/img_convert\/d36a5c1f6341d0e5e1b2b00a4ecfc4d6.png\" =\"\" =\"d36a5c1f6341d0e5e1b2b00a4ecfc4d6.png\" alt=\"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00 (https:\/\/mushiming.com\/)  \u7b2c3\u5f20\" title=\"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00  \u7b2c3\u5f20-\u7a46\u4e16\u660e\u535a\u5ba2\" ><\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"perf tool linux_\u67e5\u770blinux\u670d\u52a1\u5668\u8bed\u8a00LEP\u5de5\u5177\u5165\u95e8\u7ed9\u5927\u5bb6\u63a8\u8350\u4e2a\u5b8b\u5b9d\u534e\u8001\u5e08\u51fa\u54c1\u7684\u5c0f\u5de5\u5177\u76f8\u5173\u6587\u6863:LEP\u7684\u4ecb\u7ecd\uff0c\u5927\u5bb6\u76f4\u63a5\u770b\u4e0a\u9762\u7684...","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"_links":{"self":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/4947"}],"collection":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/comments?post=4947"}],"version-history":[{"count":0,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/posts\/4947\/revisions"}],"wp:attachment":[{"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/media?parent=4947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/categories?post=4947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mushiming.com\/wp-json\/wp\/v2\/tags?post=4947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}