본문 바로가기
python3/django

django - That port is already in use

by 2세1의 행복한 개발 2020. 7. 17.
반응형

가끔 충돌로 기존 웹서버가 꺼지지 않고 남아있는 경우가 있다

Watching for file changes with StatReloader
Performing system checks...

System check identified no issues (0 silenced).

You have 17 unapplied migration(s). Your project may not work properly until you apply the migrations for app(s): admin, auth, contenttypes, sessions.
Run 'python manage.py migrate' to apply them.

July 17, 2020 - 07:39:38
Django version 3.0.8, using settings 'Allbaleun.settings'
Starting development server at http://0.0.0.0:8000/
Quit the server with CONTROL-C.
Error: That port is already in use.

포트 확인

netstat -ntlp

해당 프로세스를 죽임

kill -9 19577

Django 실행

python3 /root/Allbaleun/manage.py runserver 0.0.0.0:8000

 

해당 프로세스를 죽이고 웹서버를 실행하면 문제 없이 동작합니다.

 

'python3 > django' 카테고리의 다른 글

CentOS7 + django 설치하기  (0) 2020.07.17

댓글