I can't figure out a couple of relationships here!
Also, in the middle of the PHP manual, there is a passage:
默认为将 PHP 编译为 CLI 和 CGI 程序。这将建立一个命令行解释器,可用于 CGI 处理或非 web 相关的 PHP 脚本。如果用户运行着一个 PHP 模块支持的 web 服务器,那通常为性能考虑应该使用模块方式。不过 CGI 版可以使 Apache 用户用不同的用户 ID 运行不同的 PHP 页面。
What is the division between this CLI and CGI? Does the CLI mean to run with the command line? CGI is the normal run (browser input and then run the php file?). )
Reply content:
I can't figure out a couple of relationships here!
Also, in the middle of the PHP manual, there is a passage:
默认为将 PHP 编译为 CLI 和 CGI 程序。这将建立一个命令行解释器,可用于 CGI 处理或非 web 相关的 PHP 脚本。如果用户运行着一个 PHP 模块支持的 web 服务器,那通常为性能考虑应该使用模块方式。不过 CGI 版可以使 Apache 用户用不同的用户 ID 运行不同的 PHP 页面。
What is the division between this CLI and CGI? Does the CLI mean to run with the command line? CGI is the normal run (browser input and then run the php file?). )
Cli:command lines Interface (command line interface)
Cgi:common Gateway Interface
CLI and CGI are essentially different two things, but abbreviations look a little bit like that.
PHP-FPM is the fastcgi manager, what is PHP-FPM? Look here