当前位置:网站首页>Others - understand CGI, fastcgi, WSGI, uwsgi and uwsgi
Others - understand CGI, fastcgi, WSGI, uwsgi and uwsgi
2022-04-21 21:06:00 【This code is poisonous】
List of articles
CGI, FastCGI, WSGI, uWSGI, uwsgi Article, understand
One CGI
# 1、 Universal gateway interface (Common Gateway Interface/CGI) It's an important Internet technology , You can have a client , Request data from a web browser to a program executed on a web server .CGI Describes a standard for transferring data between a server and a request handler .
# 2、CGI The program can be implemented in any script language or completely independent programming language , As long as the language can run on this system .
# 3、 Used for specification web Server transfer to php Data types and data formats in the interpreter , Include URL、 Query string 、POST data 、HTTP header etc. , That's to make sure web server The data passed is in standard format
# 4、 One sentence summary : A standard , It defines how to transfer data between client and server
Two FastCGI
# 1、 Fast universal Gateway Interface (Fast Common Gateway Interface/FastCGI) It's a way for interactive programs to interact with Web Protocol of server communication .FastCGI It's the early universal Gateway Interface (CGI) Enhanced version of .
# 2、FastCGI Committed to reducing web servers and CGI The cost of interaction between programs , So that the server can process more web requests at the same time .
# 3、 Use FastCGI Server for :
Apache HTTP Server ( part )
Cherokee HTTP Server
Hiawatha Webserver
Lighttpd
Nginx
LiteSpeed Web Server
Microsoft IIS
# 4、 One sentence summary : CGI Upgraded version

3、 ... and WSGI
# 1、Web Server gateway interface (Python Web Server Gateway Interface, Abbreviation for WSGI) Is for Python Defined by language Web The server and Web A simple and general interface between applications or frameworks . since WSGI After being developed , Similar interfaces have emerged in many other languages .
# 2、wsgi server ( such as uWSGI) Want to be with wsgi application( such as django ) Interaction ,uwsgi You need to forward your requests to django Handle , that uWSGI and django A unified specification is needed for the interaction and invocation of , The norm is WSGI WSGI(Web Server Gateway Interface)
# 3、WSGI, Full name Web Server Gateway Interface, perhaps Python Web Server Gateway Interface , Is for Python Defined by language Web The server and Web A simple and general interface between applications or frameworks . since WSGI After being developed , Similar interfaces have emerged in many other languages .
# 4、WSGI The official definition of ,the Python Web Server Gateway Interface. It can be seen from the name , This thing is a Gateway, That's gateway . The role of gateway is to convert between protocols .
# 5、WSGI As a Web The server and Web A low-level interface between applications or application frameworks , To improve portability Web What application development has in common .WSGI It's based on the existing CGI Standard and designed
# 6、 One sentence summary : by Python Defined web The server and web Interface standards between frameworks
Four uWSGI
wsgiref,werkzeug( One is in line with wsgi Agreed web The server + tool kit ( Encapsulated something ))
uWSGI use c Written language , High performance
gunicorn:python Written
tornado: It can also be deployed django project
# 1、 It's a Web The server ( Similar ones wsgiref,gunicorn), It has achieved WSGI agreement 、uwsgi、http Such agreement . It is used to receive the dynamic request forwarded by the front-end server and send it to the server after processing web Applications .
# 2、Nginx in HttpUwsgiModule Its function is to communicate with uWSGI The server exchanges
# 3、 One sentence summary : One Web Server, That is, an implementation of WSGI Server for , In general, and Apache It's a type of thing , Processing requests from .

5、 ... and uwsgi
location / {
# Mode one
#include uwsgi_params; # Import a Nginx Module he is used for and uWSGI Communicating
#uwsgi_connect_timeout 30; # Set up the connection uWSGI Timeout time
#uwsgi_pass 101.133.225.166:8080;
# Mode two
#include uwsgi_params; # Import a Nginx Module he is used for and uWSGI Communicating
#uwsgi_pass unix:///var/www/script/uwsgi.sock; # Appoint uwsgi Of sock File all dynamic requests
# Mode three
proxy_pass http://101.133.225.166:8088
}
# 1、 It is uWSGI The unique protocol implemented by the server , Used to define the type of transmission information , It is used for front-end servers and uwsgi Communication specification .
# 1、 One sentence summary : uWSGI An agreement of its own
uWSGI:web The server , Equate to wsgiref
uwsgi:uWSGI Own agreement


[ Outside the chain picture transfer in …(img-5vawUvG5-1647962787218)]
[ Outside the chain picture transfer in …(img-jwMrHdrY-1647962787218)]
版权声明
本文为[This code is poisonous]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204212057442374.html
边栏推荐
猜你喜欢
![[azure application service] after azure function enables managed identity, error appears in PowerShell function: managedidentitycredential authentication failed](/img/81/adf80795cc22a887be2075ab3da0ef.png)
[azure application service] after azure function enables managed identity, error appears in PowerShell function: managedidentitycredential authentication failed

滑环技术在机器运行中的重要性

10 minute quick start RDS

135、137、138、139和445端口解释及关闭方法

公文管理系统案例展示

MapReduce服务初体验

迅为RK3568开发板交叉编译C程序

Manuel d'utilisation et de développement de la plate - forme de connexion unique pour l'amarrage du système d'AP de Tongda

25.<tag-数组和模拟>-lt- 31.下一个排列 + lt- 556. 下一个更大元素 III

《ROS2机器人建模URDF》8.4控制移动机器人轮子运动
随机推荐
EeasyBI报表系统 数据源可视化视图使用手册
Importance of slip ring technology in machine operation
【无标题】测试的时间按均分121
滑环接线最主要的看什么
Kubernetes详解(五)——Kubernetes核心对象
《动手学机器人学》7.4机器人运动学介绍|机械臂运动学|两轮差速底盘运动学|轮式里程计
基于华为云图像识别标签
其它-Supervisor的使用
The shell finds or deletes files based on their suffixes
[报错]Content-Length vs downloaded bytes
使用 Helm 部署 Wikijs
Autres - - analyse de la cohérence en double écriture entre redis et MySQL
Weekly report from April 11, 2022 to April 17, 2022
oracle管理 | 表空间权限管控
【常用快捷键】
The annual salary is 170W. Alibaba P8 blind date requires the woman's monthly salary of 10000. Netizen: it's a little high
滑环技术在机器运行中的重要性
信息学奥赛一本通 1210:因子分解 | OpenJudge 1.13 22:因子分解
反射111
Install MySQL 8 for Ubuntu