当前位置:网站首页>Fastcgi CGI shallow understanding
Fastcgi CGI shallow understanding
2022-06-30 14:11:00 【Ebony feed feed Wayne yetun wyuwenmu Bian OSAS】
About CGI Relevant definitions and introductions
CGI(COMMON GATEWAT INTERFACE) The full name is universal gateway interface WEB The server and PHP An interface for applications to talk The program needs to run on the network server .CGI It can be written in any language , As long as the language has standard input 、 Output and environment variables . Such as perl、tcl、php etc. .
CGI For each HTTP request Metropolis fork A new process to handle ( Parse configuration file , Initialize execution environment , Processing requests ) Then, the result of this process is passed through WEB The server forwards it to the user , just fork The new process will also exit if the user requests dynamic resources again the next time , that web The server again fork A new process , This cycle goes back and forth .
About FAST CGI Related definitions and introductions of
FASTCGI As the name suggests, it is CGI Updated version of
FASTCGI We will first fork One master New process , Parse configuration file , Initialize the executor , And then it goes on fork Multiple work process ( And nginx More similar ), When HTTP When the request comes in ,master The process passes it to a work process , Then you can immediately accept the next request , This avoids repeated initialization operations , Efficiency naturally increases , When work When the request is not enough ,master The process will also be pre started several times according to the configuration work Process waiting , When work When there are too many requests master The process will kill several work request , This not only improves performance , It also saves a lot of system resources . This is it. FASTCGI And CGI The difference between

边栏推荐
- MFQE 2.0: A New Approach for Multi-FrameQuality Enhancement on Compressed Video
- QQ was stolen? The reason is
- More than 20 years after Hong Kong's return, Tupu digital twin Hong Kong Zhuhai Macao Bridge has shocked
- @ResponseBody的作用
- [observation] as the intelligent industry accelerates, why should AI computing power take the lead?
- 表格储存中sql查询的时候,查询结果增加主键报错,查询结果超过10w行。需要对主键增加上多元索引吗?
- [Title brushing] coco, who likes bananas
- Mutex lock, read / write lock, spin lock, pessimistic lock, and optimistic lock
- Deep understanding Net (2) kernel mode 2 Kernel mode construct semaphone
- Je suis à Foshan, où puis - je ouvrir un compte? L'ouverture d'un compte par téléphone mobile est - elle sécurisée?
猜你喜欢

Flat shading with unity

Step by step | help you easily submit Google play data security form

Race of golang

Jetpack Compose 实现完美屏幕适配

半导体动态杂谈

【刷题篇】避免洪水泛滥

Observable, reliable: the first shot of cloudops series Salon of cloud automation operation and maintenance

Pytoch viewing model parameter quantity and calculation quantity

Unity animator parameter

About the problems encountered when using the timer class to stop with a button (why does the QPushButton (for the first time) need to be clicked twice to respond?)
随机推荐
Begin End use the pit encountered
Pytorch查看模型参数量和计算量
MySQL access denied, opened as Administrator
LeetCode_ Stack_ Medium_ 227. basic calculator II (without brackets)
(8)JMeter元件详解之 Once only Controller 仅一次控制器
PHP reverses scenarios based on code and skillfully uses debug_ backtrace()
【科研数据处理】[实践]类别变量频数分析图表、数值变量分布图表与正态性检验(包含对数正态)
幸运哈希竞猜系统开发(源码部署)趣投哈希游戏玩法开发(案例需求)
Unity Animator 参数
Deep understanding Net (2) kernel mode 4 Summary of kernel pattern constructs
In the digital age, XDR (extended detection and response) has unlimited possibilities
DNS 解析之家庭网络接入 Public DNS 实战
单元测试效率优化:为什么要对程序进行测试?测试有什么好处?
【科研数据处理】[基础]类别变量频数分析图表、数值变量分布图表与正态性检验(包含对数正态)
[scientific research data processing] [practice] frequency analysis chart of category variables, distribution chart of numerical variables and normality test (including lognormal)
提权扫描工具
There is no utf8 option for creating tables in Navicat database.
Heavyweight: the domestic ide was released, developed by Alibaba, and is completely open source!
重磅:国产IDE发布,由阿里研发,完全开源!
Project management - common English vocabulary I