mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-12 02:15:44 +02:00
gunicorn: add Chinese translation
This commit is contained in:
parent
987fd62062
commit
cd2112d467
1 changed files with 27 additions and 0 deletions
27
pages.zh/osx/gunicorn.md
Normal file
27
pages.zh/osx/gunicorn.md
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
# gunicorn
|
||||||
|
|
||||||
|
> Python 的 WSGI http服务器.
|
||||||
|
|
||||||
|
- 运行python web应用程序:
|
||||||
|
|
||||||
|
`gunicorn {{导入路径:应用程序}}`
|
||||||
|
|
||||||
|
- 在localhost上监听8080端口:
|
||||||
|
|
||||||
|
`gunicorn --bind {{localhost}}:{{8080}} {{导入路径:应用程序}}`
|
||||||
|
|
||||||
|
- 启用实时自动加载:
|
||||||
|
|
||||||
|
`gunicorn --reload {{导入路径:应用程序}}`
|
||||||
|
|
||||||
|
- 使用4个工作进程处理请求:
|
||||||
|
|
||||||
|
`gunicorn --workers {{4}} {{导入路径:应用程序}}`
|
||||||
|
|
||||||
|
- 使用4个工作线程处理请求:
|
||||||
|
|
||||||
|
`gunicorn --threads {{4}} {{导入路径:应用程序}}`
|
||||||
|
|
||||||
|
- 通过https运行应用程序:
|
||||||
|
|
||||||
|
`gunicorn --certfile {{cert.pem}} --keyfile {{key.pem}} {{导入路径:应用程序}}`
|
Loading…
Add table
Reference in a new issue