高性能 Web 服务器,Nginx 1.9.6 发布

jopen 8年前

Nginx 1.9.6 发布,具体更新信息如下:

  •     *) Bugfix: a segmentation fault might occur in a worker process when
           using HTTP/2.
           Thanks to Piotr Sikora and Denis Andzakovic.

  •     *) Bugfix: the $server_protocol variable was empty when using HTTP/2.

  •     *) Bugfix: backend SSL connections in the stream module might be timed
           out unexpectedly.

  •     *) Bugfix: a segmentation fault might occur in a worker process if
           different ssl_session_cache settings were used in different virtual
           servers.

  •     *) Bugfix: nginx/Windows could not be built with MinGW gcc; the bug had
           appeared in 1.9.4.
           Thanks to Kouhei Sutou.

  •     *) Bugfix: time was not updated when the timer_resolution directive was
           used on Windows.

  •     *) Miscellaneous minor fixes and improvements.
           Thanks to Markus Linnala, Kurtis Nusbaum and Piotr Sikora.

详细信息请查看:http://nginx.org/en/download.html

Nginx(发音同engine x)是一款由俄罗斯程序员Igor Sysoev所开发轻量级的网页服务器、反向代理服务器以及电子邮件(IMAP/POP3)代理服务器。起初是供俄国大型的门户网站及搜索引擎 Rambler(俄语:Рамблер)使用。此软件BSD-like协议下发行,可以在UNIX、GNU/Linux、BSD、Mac OS X、Solaris,以及Microsoft Windows等操作系统中运行。

Nginx相较于Apache、lighttpd具有占有内存少,稳定性高等优势,并且依靠并发能力强,丰富的模块库以及友好灵活的配置而闻名。 在Linux操作系统下,nginx使用epoll事件模型,得益于此,nginx在Linux操作系统下效率相当高。同时Nginx在OpenBSD或 FreeBSD操作系统上采用类似于epoll的高效事件模型kqueue。

目前使用FastCGI+Nginx运行PHP应用时如果配置文件设置不合理,并不是十分可靠。建议使用NAMP架构(Nginx+Apache+Mysql+PHP),即使用Nginx处理静态请求,并将动态请求反向代理给Apache处理。目前中国大陆使用 nginx网站用户有:新浪、网易、 腾讯,另外知名的微网志Plurk也使用nginx。