This is due to a bug in the Apache software that's bundled with Lion. A more recent version of Apache (beta) fixes the problem. To fix ab, here are the steps:
-
Download the latest version of Apache
$ wget http://apache.mirrors.pair.com//httpd/httpd-2.3.16-beta.tar.bz2
If 2.3.16 is not available, go to http://apache.mirrors.pair.com/httpd and get the latest
-
Install pcre (you need brew for this)
$ brew install pcre -
Build Apache
$ tar xzvf httpd-2.3.16-beta.tar.bz2 $ cd httpd-2.3.16-beta $ ./configure $ make -
Overwrite the existing ab with the newly built one
$ sudo cp support/ab /usr/sbin
本文介绍了一个出现在Lion中捆绑的Apache软件中的bug,并提供了一种解决方案。要解决这个问题,首先需要下载最新版的Apache,安装必要的依赖库pcre,然后编译并构建Apache,最后替换原有的ab工具。
7万+

被折叠的 条评论
为什么被折叠?



