Running python through fastCGI for nginx

后端 未结 1 436
走了就别回头了
走了就别回头了 2020-12-13 16:48

I am looking to run standalone python scripts through fcgi for use with nginx, but I have no idea where to start with spawning the processes. Currently, I have PHP successfu

相关标签:
1条回答
  • 2020-12-13 17:11

    See the python docs section on FCGI. Basically, with Python, you use the WSGI interface on top of an fcgi server which talks to the web server (the fcgi client).

    See Python + FastCGI for a couple of Python fcgi servers.

    Edit:

    This nginx wiki page explains exactly how to set up Python with nginx using fcgi.

    This wiki page describes the uWSGI module for nginx, which is the natural way to use Python with a web server, if you don't really need to use fcgi. This blog entry also looks like good info on uWSGI.

    In production, Apache + mod_wsgi or Nginx + mod_wsgi? has some useful info for nginx mod_wsgi as well.

    0 讨论(0)
提交回复
热议问题