升木 发表于 2018-11-20 07:20:02

Nginx 和 Apache

  nginx 相对 apache 的优点:

[*]轻量级,同样起web 服务,比apache 占用更少的内存及资源;
[*]抗并发,nginx 处理请求是异步非阻塞的,而apache 则是阻塞型的,在高并发下nginx 能保持低资源低消耗高性能;
[*]高度模块化的设计,编写模块相对简单;
[*]社区活跃,各种高性能模块出品迅速啊;
apache 相对nginx 的优点:

[*]rewrite ,比nginx 的rewrite 强大;
[*]  模块超多,基本想到的都可以找到;
[*]  少bug ,nginx 的bug 相对较多;
[*]  超稳定;





页: [1]
查看完整版本: Nginx 和 Apache