{"id":7400,"date":"2020-05-04T12:38:52","date_gmt":"2020-05-04T04:38:52","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=7400"},"modified":"2020-05-04T12:40:37","modified_gmt":"2020-05-04T04:40:37","slug":"ab","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/ab","title":{"rendered":"ab\u547d\u4ee4 – Web\u670d\u52a1\u5668\u7684\u6027\u80fd\u6d4b\u8bd5\u5de5\u5177"},"content":{"rendered":"\n
ab\u547d\u4ee4\u662fApache\u7684Web\u670d\u52a1\u5668\u7684\u6027\u80fd\u6d4b\u8bd5\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u6d4b\u8bd5\u5b89\u88c5Web\u670d\u52a1\u5668\u6bcf\u79d2\u79cd\u5904\u7406\u7684HTTP\u8bf7\u6c42\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>ab [\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 \u8fdb\u884capp\u63a5\u53e3\u7684\u538b\u6d4b\uff1a<\/p>\n\n\n\n \u8fdb\u884cpost\u4f20\u53c2\u7684\u538b\u6d4b\uff1a<\/p>\n\n\n\n \u670d\u52a1\u5668\u6d4b\u8bd5\uff1a<\/p>\n\n\n\n ab\u547d\u4ee4\u662fApache\u7684Web\u670d\u52a1\u5668\u7684\u6027\u80fd\u6d4b\u8bd5\u5de5\u5177\uff0c\u5b83\u53ef\u4ee5\u6d4b\u8bd5\u5b89\u88c5Web\u670d\u52a1\u5668\u6bcf\u79d2\u79cd\u5904\u7406\u7684HTTP\u8bf7\u6c42\u3002 \u8bed\u6cd5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[11],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7400"}],"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=7400"}],"version-history":[{"count":2,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7400\/revisions"}],"predecessor-version":[{"id":7406,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/7400\/revisions\/7406"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=7400"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=7400"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=7400"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-A<\/td> \u6307\u5b9a\u8fde\u63a5\u670d\u52a1\u5668\u7684\u57fa\u672c\u7684\u8ba4\u8bc1\u51ed\u636e<\/td><\/tr> -c<\/td> \u6307\u5b9a\u4e00\u6b21\u5411\u670d\u52a1\u5668\u53d1\u51fa\u8bf7\u6c42\u6570<\/td><\/tr> -C<\/td> \u6dfb\u52a0cookie<\/td><\/tr> -g<\/td> \u5c06\u6d4b\u8bd5\u7ed3\u679c\u8f93\u51fa\u4e3a\u201cgnuolot\u201d\u6587\u4ef6<\/td><\/tr> -H<\/td> \u4e3a\u8bf7\u6c42\u8ffd\u52a0\u4e00\u4e2a\u989d\u5916\u7684\u5934\uff1b<\/td><\/tr> -i<\/td> \u4f7f\u7528\u201chead\u201d\u8bf7\u6c42\u65b9\u5f0f<\/td><\/tr> -p<\/td> \u6307\u5b9a\u5305\u542b\u6570\u636e\u7684\u6587\u4ef6<\/td><\/tr> -q<\/td> \u4e0d\u663e\u793a\u8fdb\u5ea6\u767e\u5206\u6bd4<\/td><\/tr> -T<\/td> \u4f7f\u7528POST\u6570\u636e\u65f6\uff0c\u8bbe\u7f6e\u5185\u5bb9\u7c7b\u578b\u5934<\/td><\/tr> -x<\/td> \u4ee5\u8868\u683c\u65b9\u5f0f\u8f93\u51fa\u65f6\uff0c\u8bbe\u7f6e\u8868\u683c\u7684\u5c5e\u6027\uff1b<\/td><\/tr> -y<\/td> \u4ee5\u8868\u683c\u65b9\u5f0f\u8f93\u51fa\u65f6\uff0c\u8bbe\u7f6e\u8868\u683c\u5c5e\u6027<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n [root@linuxcool ~]# ab -n 400 -c 20 \"http:\/\/www.xxx.com\/api.php?sig=......\"<\/pre>\n\n\n\n
[root@linuxcool ~]# ab -n 400 -c 20\u00a0 -p parm.txt -T \"application\/x-www-form-urlencoded\" <\/pre>\n\n\n\n
[root@linuxcool ~]# ab -n 400 -c 20 \"https:\/\/www.linuxcool.com\"<\/pre>\n","protected":false},"excerpt":{"rendered":"