Gunicorn Connection in Use: ('0.0.0.0', 5000)
1.查找孤立进程:
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
找到进程 ID(结果第一列中的数字)
kill 11111
将 11111 替换为进程 ID
ps -ax | grep gunicorn
kill 12175
cd wsgi_example
gunicorn app:AppClassIter
2.Error: That port is already in use
lsof -i:端口号
kill -9 [UID]