ab测试swoole和ngixn+php-fpm对比

做个swoole http_server和ngixn+php7-fpm测试

nginx

 

swoole卓越的性能让我惊呆了

 
如需应用可nginx反代, swoole作为http_server, 不用php-fpm
location ~ \.php$
{
  proxy_http_version 1.1;
  proxy_set_header Connection "keep-alive";
  proxy_set_header X-Real-IP $remote_addr;
  proxy_pass http://127.0.0.1:9501; 
}
}
}
posted @ 2017-11-14 16:51  jking10  阅读(654)  评论(0编辑  收藏  举报