Как выйти от uwsgi серверного процесса

Я пытаюсь настроить uWSGI для django использование http://adambard.com/blog/start-to-finish-serving-mysql-backed-django-w/ и учебного руководства по http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html. После направлений я имею:

(env1)ubuntu@ip-172-31-28-196:~$ ls
host_type.py  requirements.txt  test.py  tproxy
(env1)ubuntu@ip-172-31-28-196:~$ sudo chmod 666 test.py
(env1)ubuntu@ip-172-31-28-196:~$ uwsgi --http :8000 --wsgi-file test.py
*** Starting uWSGI 2.0.9 (64bit) on [Tue Mar  3 14:45:58 2015] ***
compiled with version: 4.8.2 on 03 March 2015 02:58:28
os: Linux-3.13.0-44-generic #73-Ubuntu SMP Tue Dec 16 00:22:43 UTC 2014
nodename: ip-172-31-28-196
machine: x86_64
clock source: unix
detected number of CPU cores: 1
current working directory: /home/ubuntu
detected binary path: /home/ubuntu/.virtualenvs/env1/bin/uwsgi
!!! no internal routing support, rebuild with pcre support !!!
*** WARNING: you are running uWSGI without its master process manager ***
your processes number limit is 7862
your memory page size is 4096 bytes
detected max file descriptor number: 1024
lock engine: pthread robust mutexes
thunder lock: disabled (you can enable it with --thunder-lock)
probably another instance of uWSGI is running on the same address (:8000).
bind(): Address already in use [core/socket.c line 764]

Как Вы видите, существует другой экземпляр выполнения uWSGI. Как я останавливаю его?

1
задан 3 March 2015 в 08:22

1 ответ

Можно остановить его использование:

sudo fuser -k 8000/tcp

Это уничтожает процесс, который Вы имеете на своем порте 8000

1
ответ дан 11 November 2019 в 02:24

Другие вопросы по тегам:

Похожие вопросы: