Apache、lighttpd、nginx、cherokee,什么是最佳组合?

发布于 2024-10-08 19:22:14 字数 247 浏览 0 评论 0原文

我有一个博客,动态(php)和静态内容(图像,css,js)。我在谷歌上搜索了很多,以找到每台服务器上的基准,并发现实际上没有最好的服务器。因此,我正在寻找经验回报来选择好的组合。

回复wheaties的更新:嗯,我的需求是我想的,和大家一样;我需要快速加载所有页面(包括静态内容),并且我需要尽可能高的 HTTP 查询/秒速率。另外,如果有帮助的话,我正在使用 MongoDB。顺便说一句,我还需要用它来缓存我的数据库查询吗?

I have a blog, dynamic (php) and static content (images, css, js). I googled a lot to find benchmarks on each server and figured out that there's actually no best server. Therefore I'm looking for returns on experience to choose the good combination.

Update in response to wheaties: well, my needs are I think, the same as everyone; I need all my pages to load quickly--including static content--an I need the highest HTTP queries/second rate possible. Also, if it can help, I'm using MongoDB. Btw, do I still need to cache my DB queries with this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

北凤男飞 2024-10-15 19:22:14

关于 Apache 和 Nginx:

我使用 Apache 已经快 10 年了。然后我发现了 Nginx。
很快我发现 Nginx 很吸引人,

  • 简单而强大的 C 代码
  • 配置语法直观而优雅,
  • Nginx 在构建时就考虑到了性能和效率。即使有数千个连接,它的效率也令人难以置信。
  • php-fpm 与 Nginx 配合得很好

,所以,我建议,在两者之间(Apache 和 Nginx),Nginx。

Regarding Apache and Nginx:

I used Apache for almost 10 years. Then I discovered Nginx.
Quickly I found Nginx appealing

  • simple and powerful C code
  • configuration syntax is intuitive and elegant
  • Nginx was built with performance and efficiency in mind. It is incredibly efficient, even with thousands of connections.
  • php-fpm works well with Nginx

So, I would recommend, between the two (Apache and Nginx), Nginx.

风吹雪碎 2024-10-15 19:22:14

Lighttpd 以提供静态内容而闻名。 Nginx 是动态 (php) 页面的不错选择。我听说很少有网站仅使用lighttpd 来提供静态内容。

Lighttpd is well known for serving static content. Nginx is a good option for dynamic (php) pages. I've heard of few sites which use lighttpd only for serving static content.

各空 2024-10-15 19:22:14

用于静态内容的 Lighttpd 和一些用于动态 (PHP) 的缓存脚本。

Lighttpd for static content and some caching scripts for dynamic (PHP).

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文