如何阻止这个gunicorn服务器?

时间:2016-08-19 20:23:13

标签: gunicorn

我尝试了几乎所有命令来杀死gunicorn服务器。但没有任何工作。我怎样才能杀死这些进程并释放80端口

12652 ?        Ss     0:00 sudo gunicorn -b 0.0.0.0:80 foss.wsgi:application
12654 ?        S      0:00 /usr/bin/python /usr/local/bin/gunicorn -b 0.0.0.0:80 foss.wsgi:application
12659 ?        S      0:00 /usr/bin/python /usr/local/bin/gunicorn -b 0.0.0.0:80 foss.wsgi:application
12709 ?        Ss     0:00 sudo gunicorn -b 0.0.0.0:80 foss.wsgi:application
12711 ?        S      0:00 /usr/bin/python /usr/local/bin/gunicorn -b 0.0.0.0:80 foss.wsgi:application
12717 pts/11   S+     0:00 grep --color=auto gunicorn

1 个答案:

答案 0 :(得分:3)

抓住pid,例如12652,并发出以下命令:

sudo kill -9 12652

这将发出一个SIGKILL,它不能被应用程序捕获或忽略。