Home > Backend Development > PHP Tutorial > 用nginx作为负载均衡服务器,PHP代码放在哪(有很多上游PHP服务器)?

用nginx作为负载均衡服务器,PHP代码放在哪(有很多上游PHP服务器)?

WBOY
Release: 2016-06-06 20:22:22
Original
1667 people have browsed it

PHP代码是要放在nginx服务器上面一份?还是在php服务器上面都要放一份?

回复内容:

PHP代码是要放在nginx服务器上面一份?还是在php服务器上面都要放一份?

PHP的代码放在nginx上干嘛?让nginx解释麽?php的代码应该放在解释器所在的那个服务器~

应用服务器和均衡负载的服务器是分开的。你可以把nginx作为应用服务器,也可以作为均衡负载的服务器。服务器的作用是2选1了,不能又是均衡负载,又是应用解析。

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template