尝试把谷奥的 http server 换成了 nginx

周末没有太多事情,于是尝试把谷奥的 http server 换成了 nginx,一开始 rewrite 怎么也不生效,后来 pkg_delete 后重新安装就好了,中间也没改 config,真是怪了。。。目前看来问题不大,还需继续观察。

顺便做了个性能测试,webbench -c 100 -t 30 phpinfo(),nginx 使用了 kqueue 参数。

apache 2 的结果:

Benchmarking: GET phpinfo.php
100 clients, running 30 s

Speed=1398 pages/min, 1272384 bytes/sec.
Requests: 699 susceed, 0 failed.

Nginx 的结果:

Benchmarking: GET phpinfo.php
100 clients, running 30 sec.

Speed=19628 pages/min, 19852940 bytes/sec.
Requests: 9814 susceed, 0 failed.

差了10多倍啊!

This entry was posted in 我的慵懒生活, 电脑相关 and tagged , , , . Bookmark the permalink.

3 Responses to 尝试把谷奥的 http server 换成了 nginx

  1. Pingback: 尝试把谷奥的 http server 换成了 nginx

  2. lhcn says:

    最近看到几个博客往nginx上搬,难道成潮流了?

Leave a Reply

Your email address will not be published. Required fields are marked *


− 5 = two

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>