本文共 864 字,大约阅读时间需要 2 分钟。
下载:apache
安装apache需要安装组件APR and APR-Util包、PCRE包
下载:APR and APR-Util下载:PCRE下载后上传服务器
1、安装组件加压tar -zxvf apr-1.6.5.tar.gzcd apr-1.6.5./configure --prefix=/usr/local/aprmake && make installtar -zxvf apr-util-1.6.1.tar.gz
cd apr-util-1.6.1./configure --prefix=/usr/local/apr-util --with-apr=/usr/local/aprmake && make installtar -zxvf pcre-8.42.tar.gz
cd pcre-8.42./configure --prefix=/usr/local/pcre --with-apr=/usr/local/aprmake && make installtar -zxvf httpd-2.4.38.tar.gz
cd httpd-2.4.38/support/在编译前修改ab.cvi httpd-2.4.38/support/ab.c#define MAX_CONCURRENCY 100000 #(默认20000 修改为100000)cd .../configure --prefix=/usr/local/apache --with-pcre=/usr/local/pcre --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-utilmake && make installcd/usr/local/apache/bin
./ab -c 50000 -n 100000 压力测试5万并发10万连接数转载于:https://blog.51cto.com/zhizhimao/2347849