遇到一個教程使用 Python FastAPI 構建 Web 服務
照貓畫老虎,宿主機訪問127.0.0.1:8000出現問題:
(56) Recv failure: Connection reset by peer
解決方法:podman rootless v3.1 rc1 connection reset by peer
修改代碼:
uvicorn啓動時,指定主機0.0.0.0
遇到一個教程使用 Python FastAPI 構建 Web 服務
照貓畫老虎,宿主機訪問127.0.0.1:8000出現問題:
(56) Recv failure: Connection reset by peer
解決方法:podman rootless v3.1 rc1 connection reset by peer
修改代碼:
uvicorn啓動時,指定主機0.0.0.0
繼續運行 🥋 回憶上次內容 上上次 真寫了 萬行 代碼 這 萬行 代碼 都是寫在 明面 上的 這次 使用git命令 下載了 github上面的倉庫