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
Explanation gunicorn has performed a kill operation
Use lsof -i:20133 to check the port usage.