common/u*: add Chinese translation (#14688)

* common/u*: add Chinese translation

* Update uv-tool.md

* Update ugrep.md
This commit is contained in:
Jin
2024-11-19 04:23:02 -05:00
committed by GitHub
parent 156075e8b1
commit 2a4ef14253
28 changed files with 601 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
# uvicorn
> Python 的 ASGI HTTP 服务器,适用于异步项目。
> 更多信息:<https://www.uvicorn.org/>.
- 运行 Python Web 应用:
`uvicorn {{导入路径:应用对象}}`
- 在本地主机上监听端口 8080
`uvicorn --host {{localhost}} --port {{8080}} {{导入路径:应用对象}}`
- 启用实时重新加载:
`uvicorn --reload {{导入路径:应用对象}}`
- 使用 4 个工作进程处理请求:
`uvicorn --workers {{4}} {{导入路径:应用对象}}`
- 通过 HTTPS 运行应用:
`uvicorn --ssl-certfile {{cert.pem}} --ssl-keyfile {{key.pem}} {{导入路径:应用对象}}`