简体   繁体   中英

Do I need php-fpm to serve MongoDB persistent connections

I have an outdated apache/php_mod configuration on my servers. Will PHP persist connections as in documentation without having php-fpm or it is required?

The PHP MongoDB driver is often used with PHP-FPM on nginx.
However, you do not need PHP-FPM on Apache to persist connections .

Anyways, make sure to use a MongoDB/Driver version 1.2 or newer or you may not gain any performance .

Also, take a look at the MongoDB documentation of compatible PHP drivers .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM