浅谈CGI、FastCGI、PHP-CGI、PHP-FPM!
2022-12-02 09:01:16
126
{{single.collect_count}}

php入门到就业线上直播课:进入学习
Apipost = Postman + Swagger + Mock + Jmeter 超好用的API调试工具:点击使用

CGI与FastCGI的理解

  • CGI与FastCGI都是一种通讯协议,是web Sever(Apache/nginx/iis)与其他程序(此程序通常叫做CGI程序,如PHP脚本解析器)之间通讯的桥梁

  • FastCGI是CGI的改良进化版,FastCGI相比CGI更安全、性能更好,所以现在都是使用FastCGI协议进行通讯

  • FastCGI兼容CGI

PHP-CGI与PHP-FPM

  • PHP-CGI其实就是PHP脚本解析器,他是CGI协议的实现

  • PHP-FPM就是FastCGI协议的实现

  • PHP-CGI和PHP-FPM都是程序

CGI与FastCGI的执行流程

  • CGI

    1.png

  • FastCGI

    2.png

相关教程推荐:《PHP教程

以上就是浅谈CGI、FastCGI、PHP-CGI、PHP-FPM!的详细内容,更多请关注php中文网其它相关文章!

回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}