Gunicorn Connection in Use: ('0.0.0.0', 5000)

后端 未结 5 773
不思量自难忘°
不思量自难忘° 2021-02-07 10:33

I installed redis this afternoon and it caused a few errors, so I uninstalled it but this error is persisting when I launch the app with foreman start. Any ideas on

5条回答
  •  萌比男神i
    2021-02-07 11:33

    Find the orphaned process:

    ps -ax |grep gunicorn
    
    11111 ?? 0:03.44 /usr/local/Cellar/python/3.7.4/Frameworks/Python.framework/Versions/3.7/Resources/Python.app/Contents/MacOS/Python /usr/local/bin/gunicorn -b :5000 main:app
    

    Locate the Process ID (the number in the first column of the results)

    kill 11111
    

    Replace 11111 with the Process ID

提交回复
热议问题