add new chinese translations
This commit is contained in:
@@ -1,28 +1,28 @@
|
||||
# gunicorn
|
||||
|
||||
> Python 的 WSGI HTTP 服务器。
|
||||
> 更多信息:<https://gunicorn.org/>.
|
||||
> Python WSGI HTTP 服务器。
|
||||
> 更多信息: <https://gunicorn.org/>.
|
||||
|
||||
- 运行 Python web 应用程序:
|
||||
- 运行 Python 网络应用:
|
||||
|
||||
`gunicorn {{导入路径:应用程序}}`
|
||||
`gunicorn {{import.path:app_object}}`
|
||||
|
||||
- 在 localhost 上监听 8080 端口:
|
||||
- 在本地主机的 8080 端口上监听:
|
||||
|
||||
`gunicorn --bind {{localhost}}:{{8080}} {{导入路径:应用程序}}`
|
||||
`gunicorn --bind {{localhost}}:{{8080}} {{import.path:app_object}}`
|
||||
|
||||
- 启用实时自动加载:
|
||||
- 开启实时重载:
|
||||
|
||||
`gunicorn --reload {{导入路径:应用程序}}`
|
||||
`gunicorn --reload {{import.path:app_object}}`
|
||||
|
||||
- 使用 4 个工作进程处理请求:
|
||||
|
||||
`gunicorn --workers {{4}} {{导入路径:应用程序}}`
|
||||
`gunicorn --workers {{4}} {{import.path:app_object}}`
|
||||
|
||||
- 使用 4 个工作线程处理请求:
|
||||
|
||||
`gunicorn --threads {{4}} {{导入路径:应用程序}}`
|
||||
`gunicorn --threads {{4}} {{import.path:app_object}}`
|
||||
|
||||
- 通过 HTTPS 运行应用程序:
|
||||
- 通过 HTTPS 运行应用:
|
||||
|
||||
`gunicorn --certfile {{cert.pem}} --keyfile {{key.pem}} {{导入路径:应用程序}}`
|
||||
`gunicorn --certfile {{cert.pem}} --keyfile {{key.pem}} {{import.path:app_object}}`
|
Reference in New Issue
Block a user