php fpm和fast-CGI有啥关系?而且还有一个疑问,就是PHP以CGI方式运行,请问以CGI方式运行到底是啥意思??

WBOY
Release: 2016-06-06 20:40:05
Original
1195 people have browsed it

这里好几个关系我都搞不清楚!
此外,在PHP手册中间,有这么一段话:
默认为将 PHP 编译为 CLI 和 CGI 程序。这将建立一个命令行解释器,可用于 CGI 处理或非 web 相关的 PHP 脚本。如果用户运行着一个 PHP 模块支持的 web 服务器,那通常为性能考虑应该使用模块方式。不过 CGI 版可以使 Apache 用户用不同的用户 ID 运行不同的 PHP 页面。
这个CLI和CGI的分工到底是什么?CLI就表示使用命令行运行吗?CGI就就表示一般的运行(浏览器输入然后运行php文件吗?)

回复内容:

这里好几个关系我都搞不清楚!
此外,在PHP手册中间,有这么一段话:
默认为将 PHP 编译为 CLI 和 CGI 程序。这将建立一个命令行解释器,可用于 CGI 处理或非 web 相关的 PHP 脚本。如果用户运行着一个 PHP 模块支持的 web 服务器,那通常为性能考虑应该使用模块方式。不过 CGI 版可以使 Apache 用户用不同的用户 ID 运行不同的 PHP 页面。
这个CLI和CGI的分工到底是什么?CLI就表示使用命令行运行吗?CGI就就表示一般的运行(浏览器输入然后运行php文件吗?)

CLI: Command Line Interface (命令行接口)
CGI: Common Gateway Interface
CLI和CGI是本质不同的两个东西,只是缩写看起来有点像而已

PHP-FPM是FastCGI管理器,PHP-FPM是什么?看这里

Related labels:
php
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!