小智 0
https://www.fullstackpython.com/nginx.html
或者:
该模块允许在配置阶段和运行时在 nginx 中使用 Python: https:
//github.com/arut/nginx-python-module
使用模块配置 nginx:
# static module
$ ./configure --add-module=/path/to/nginx-python-module
# dynamic module
$ ./configure --add-dynamic-module=/path/to/nginx-python-module
# sync-only version (no blocking operations substitution)
$ ./configure --add-module=/path/to/nginx-python-module
--with-cc-opt=-DNGX_PYTHON_SYNC=1
# a specific Python installation can be used by exporting
# the path to python-config prior to configuring
$ export PYTHON_CONFIG=/path/to/python-config
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
26177 次 |
最近记录: |