小编mrc*_*nut的帖子

使用 unix socket 运行 Uvicorn

我在 unix 套接字上运行 uvicorn 时遇到问题...

我已经尝试了以下以及我能想到的所有组合,无论是在命令行还是在 systemd 单元文件中......

env/bin/uvicorn appname.asgi:application --uds unix:/run/uvicorn/appname.sock和每个其他组合产生一个FileNotFoundError: [Errno 2] No such file or directory,但目录在那里......

我在这里错过了什么吗?我不是 Ubuntu 或 systemd 的专家,但我能够很容易地设置 Nginx 和 uWSGI。

uwsgi systemd

4
推荐指数
1
解决办法
2217
查看次数

标签 统计

systemd ×1

uwsgi ×1