echotpq
V2EX  ›  问与答

windows 下 iis、apache、nginx 哪个并发最好? php 环境

  •  
  •   echotpq · Oct 30, 2016 · 9303 views
    This topic created in 3492 days ago, the information mentioned may be changed or developed.

    windows 下 iis 、 apache 、 nginx 哪个并发最好? php 环境

    18 replies    2016-10-31 12:54:33 +08:00
    NemoAlex
        1
    NemoAlex  
       Oct 30, 2016
    Windows 当服务器就不要计较性能了
    echotpq
        2
    echotpq  
    OP
       Oct 30, 2016
    @NemoAlex windows 还是比较顺手,所以暂时不想换。三者在 windows 下,哪个更好用?
    alittletrain
        3
    alittletrain  
       Oct 30, 2016
    @echotpq nginx > iis > apache
    sj520xj
        4
    sj520xj  
       Oct 30, 2016
    win 下就是 IIS ,其他 2 个不用试了
    echotpq
        5
    echotpq  
    OP
       Oct 30, 2016
    @sj520xj IIS 每秒的极限并发是多少? 假设是 php 环境, 8 核 8g 的配置
    ldbC5uTBj11yaeh5
        6
    ldbC5uTBj11yaeh5  
       Oct 30, 2016
    nginx/apache 的 IO 在 windows 就是残废。

    楼主你要是喜欢 unix style 的话,推荐 caddy. 毕竟是 golang 实现的,理论上在 windows 下的性能也不赖。
    lhbc
        7
    lhbc  
       Oct 30, 2016 via iPhone
    IIS 7.5+的性能是顶尖的。基本不需要担心 IIS 的性能,瓶颈必定在 PHP 或者数据库上。
    nginx 在 Windows 下性能很差。
    shiny
        8
    shiny  
    PRO
       Oct 30, 2016
    五年前选型的时候发现 IIS 比 Apache 稳定多了,但现在不知道 windows 下发生了怎么样翻天覆地的变化。
    echotpq
        9
    echotpq  
    OP
       Oct 30, 2016
    @lhbc 请教 IIS7.5+php 大并发,需要做哪些配置优化?
    bdbai
        10
    bdbai  
       Oct 31, 2016 via Android
    @echotpq 先说你有多大并发
    echotpq
        12
    echotpq  
    OP
       Oct 31, 2016 via Android
    @bdbai 虽然总量不多,但是网站性质决定,峰值并发超过 5 万
    huigeer
        13
    huigeer  
       Oct 31, 2016 via Android
    楼上肯定弄错概念了, bat 的峰值也没有 50000 的吞吐量
    echotpq
        14
    echotpq  
    OP
       Oct 31, 2016 via Android
    @huigeer 每秒 5 万次请求数
    hjc4869
        15
    hjc4869  
       Oct 31, 2016
    Windows 不要用 nginx 。
    ovear
        16
    ovear  
       Oct 31, 2016 via Android
    Windows 下请安心用 iis ,性能绝对没问题,巨硬 iocp 加持妥妥的。
    Windows 下的 Nginx 是残废, cgywin 编译的, io 是在搞笑, Apache 都比不上
    Apache 在 Windows 只有 Windows 专用的 mpm 可以用,性能只能说凑合。。
    zls3201
        17
    zls3201  
       Oct 31, 2016
    不要撇开业务 谈性能啊 每秒 5w 次 静态的 html 应该都能达到 看业务的复杂度做负载测试和评估吧 windows iis 肯定是优化的最好的
    echotpq
        18
    echotpq  
    OP
       Oct 31, 2016 via Android
    @zls3201 平时访问量不高,就是会搞些活动,可能会有 5 万次请求每秒,而且无法做成 html 静态文件,必须是 php 。 目前是的 iis+php+rds ,经常会 500 系列错误
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2941 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 12:38 · PVG 20:38 · LAX 05:38 · JFK 08:38
    ♥ Do have faith in what you're doing.