尽管 Nginx 在性能方面表现出色,为什么 Apache 仍然很受欢迎?
3 分•作者: pyeri•7 个月前
据我所知,如今普遍的共识是,即使启用了 mpm_event 进程管理,nginx+php-fpm 的性能也比 Apache 更快?
但从实际应用来看,我观察到的许多生产实例如今仍然大量部署 Apache。即使是基于 cPanel 的虚拟主机(共享或独立实例)也更倾向于使用 Apache 而非 nginx。
这是否是因为一些旧习惯和对 Apache 特定功能(如 .htaccess 支持)的依赖?还是说 Apache 实际上已经赶上了 nginx,并且如今的性能差异已经可以忽略不计了?
查看原文
As I understand, the popular consensus today is that nginx+php-fpm performs faster than apache even with the mpm_event process management enabled?<p>But when it comes to real world usage, many production instances I observe these days still deploy apache a lot. Even cpanel based web hosting (shared or dedicated instances) are more often apache based than nginx.<p>Is it due to some old habits and dependence on apache specific features like .htaccess support? Or is it the case that apache has actually caught up in the race with ngnix and the performance difference is quite negligible these days?