Mac系統(tǒng)Apache ab壓測工具安裝

一、下載Apache HTTP Server,存放任意目錄

https://httpd.apache.org/download.cgi#apache24

image.png

二、安裝

brew install apr
brew install pcre

進(jìn)入到 httpd-2.4.52 的目錄下
執(zhí)行如下命令:

./configure

./configure若出現(xiàn)以下報錯

image.png

執(zhí)行

./configure  --with-apr=/usr/local/opt/apr --with-apr-util=/usr/local/opt/apr-util  --with-pcre=/usr/local/opt/pcre --enable-ssl --with-ssl=/usr/local/opt/openssl

執(zhí)行完成后,apache 會被安裝在 /usr/local/apache2 ,需要自己創(chuàng)建apache2文件夾

cd /usr/local
sudo madir apche2
sudo chown 當(dāng)前用戶名 apache2

進(jìn)入httpd-2.4.52目錄
執(zhí)行

make&&make install

當(dāng)輸出如下日志就安裝成功了


image.png

三、示例

image.png
最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

友情鏈接更多精彩內(nèi)容