简体   繁体   English

是否可以将Nginx 32位与php 64位一起使用?

[英]Is it possible to use use Nginx 32bit with php 64bit?

Am new to PHP and Nginx web server. 是PHP和Nginx Web服务器的新功能。 I want to setup a 64bit Nginx web server with PHP 5.6 64bit on Windows 64bit system, but only 32bit Nginx build is available for windows officially. 我想在Windows 64位系统上使用PHP 5.6 64位设置64位Nginx Web服务器,但是Windows仅正式提供32位Nginx构建。 Is it possible to use PHP 64bit with Nginx 32bit web server? Nginx 32位Web服务器可以使用PHP 64位吗? If it is possible to use it, is there any performance impact? 如果可以使用它,是否会对性能产生影响?

There are 64bit Nginx builds available from unofficial sources, but they advice not to use this for production, so I need to stick with official 32bit Nginx build for windows. 有非正式来源提供的64位Nginx构建,但他们建议不要将其用于生产,因此我需要坚持Windows的官方32位Nginx构建。

Thanks in advance. 提前致谢。

PHP with nginx would normally be run as a fastcgi application ( https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ ). 带有nginx的PHP通常将作为fastcgi应用程序运行( https://www.nginx.com/resources/wiki/start/topics/examples/phpfcgi/ )。

This would communicate over a TCP socket on windows - and therefore it doesn't matter whether it's 64bit or 32bit php at the far end. 这将通过Windows上的TCP套接字进行通信-因此,在远端是64位还是32位php都没有关系。

In terms of PHP, if performance is a key driver, and your new - you mind want to consider looking at php 7 as that has a number of performance improvements over the php5 series. 就PHP而言,如果性能是关键驱动因素,那么您的新驱动程序-您要考虑考虑php 7,因为它在php5系列上具有许多性能改进。 The development of php 7 has some benchmarks on a google docs spreadsheet at the bottom of their page https://wiki.php.net/phpng which indicates the differences PHP 7的发展对一个谷歌文档电子表格一些基准在其页面底部https://wiki.php.net/phpng指示差异

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM