求助了,2万IP的论坛有必要换NginX吗?现在用的是Apache2.2.15 +PHP5.2.5+MySQL5.1.40,服务器系统资源占用太多了,是这个配置的版本问题还是?麻烦路过的哥们给下建议,是否某个程序的版本要换才更兼容。
如果这个配置没有问题,那么是不是换NginX会好一些,小弟没有用过NginX,麻烦大大讲解一下,谢谢了

解决方案 »

  1.   

    ngwsxfeatures:
    1) native porting of nginx on windows.
    2) single process mode.
    3) windows service supported.
    4) iocp event method.
    5) file aio.
    6) zlib-1.2.3. (statically link)
    7) pcre-7.9. (statically link)
    8) using configure to build the binary on cygwin.changes:
    1) bugfix: the ngwsx could not run without vc2008.
    2) change: using configure to build the binary on cygwin
               and linking with vc2008's c static library.
    3) change: zlib-1.2.3. (statically link)
    4) change: pcre-7.9. (statically link)
    5) feature: file aio.http://cloud.github.com/downloads/hehaiqiang/ngwsx/ngwsx-0.8.36.rar
    http://cloud.github.com/downloads/hehaiqiang/ngwsx/ngwsx-0.8.36.ziphttp://www.ngwsx.org/download/ngwsx-0.8.36.rar
    http://www.ngwsx.org/download/ngwsx-0.8.36.zip
      

  2.   

    Nginx 比 Apache 占用更少的系统资源,而且更小巧。在 Linux 中使用 epoll 模式的话可以顶住上万的并发访问量。至于你目前的 Apache + MySQL + PHP 架构的应用系统资源占用大,很难说是什么地方的问题,不知道是 Apache 配置的问题,还是 PHP 代码的问题,还是 MySQL 操作的问题。这里是 Java 的 Web 开发版块,我也没有 PHP 开发的经验。建议你把这个帖子转至“Web 开发 --> PHP --> 基础编程”版块,在那里你的问题可能会得到更好更快地解决。最好能再详尽地说明一下什么系统资源占用较多,代码结构是怎么样的。移帖方法:点击这个帖子标题上方的“管理菜单”,选择“移动”,大论坛选“PHP”,小论坛选“基础编程”,点确定就可以了。