Home  >  Q&A  >  body text

python - Using gunicorn to start flask project, repeated startup issues

Use gunicorn to start the flask project. Repeated startup does not prompt a port conflict, but it can start normally?
Command:
gunicorn -b 0.0.0.0:20133 run:app
After startup, no ctrl c is needed method to close, directly close the terminal, open a new terminal and find that the process is still there. At this time, continue to execute the gunicorn command to start the project and find that it can start normally. This is a problem, but I don’t know why

PHP中文网PHP中文网2712 days ago589

reply all(2)I'll reply

  • 世界只因有你

    世界只因有你2017-05-18 10:50:00

    Explanation gunicorn has performed a kill operation

    reply
    0
  • 世界只因有你

    世界只因有你2017-05-18 10:50:00

    Use lsof -i:20133 to check the port usage.

    reply
    0
  • Cancelreply