Home  >  Q&A  >  body text

python - Flask cloud deployment, gunicorn runs successfully, but cannot be accessed through the external network port

1. When gunicorn deploys the website, it directly accesses the port and shows that the operation is successful (nginx has not been configured yet), but when accessing through the external network port, it cannot be accessed
2.

3.

4. I am running python myapp.py runserver--host 0.0.0.0 --port 8080 under local ubuntu. It runs successfully and can be accessed normally through the browser.
But when I ssh@root the cloud server , the same program, python myapp.py runserver --host 0.0.0.0 --port 8080, also runs successfully, but I cannot access it through the external network address 101.200.52.53:8080
5.

阿神阿神2688 days ago1335

reply all(1)I'll reply

  • 黄舟

    黄舟2017-07-04 13:46:34

    Check if the firewall is turned on

    reply
    0
  • Cancelreply