waitress-serve
Pure Python WSGI HTTP Server. More information: https://docs.pylonsproject.org/projects/waitress/en/latest/runner.html.
- Run a Python web app:
waitress-serve
- Listen on port 8080 on localhost:
waitress-serve --listen=localhost:8080
- Start waitress on a Unix socket:
waitress-serve --unix-socket=
- Use 4 threads to process requests:
waitress-serve --threads=4
- Call a factory method that returns a WSGI object:
waitress-serve --call
- Use the HTTPS URL scheme:
waitress-serve --url-scheme=https
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
