我的服务器上有一个过时的apache/php_mod配置。 PHP是否会在没有php-fpm的情况下像文档中那样保持连接,还是必须这样做?
最佳答案
PHP MongoDB驱动程序通常与nginx上的PHP-FPM一起使用。
但是,您不需要Apache上的PHP-FPM到persist connections。
无论如何,请确保使用MongoDB/Driver version 1.2 or newer or you may not gain any performance。
另外,看看compatible PHP drivers的MongoDB文档。