🤷 기간 : 2021.04.27 ~ 2021.04.27
🤷 자료 : https://kiyoja07.blogspot.com/2019/03/django-error-that-port-is-already-in-use.html
🤷 내용: Error 대처
westarbucks
, westarbucks2
를 하다가 tutorial
을 복습하기 위해 mysite project
를 생성한 후 서버를 돌렸더니 에러가 뜸~/Desktop/wecode/wecode_project/mysite main*
base ❯ python manage.py runserver
Watching for file changes with StatReloader
Performing system checks...
System check identified no issues (0 silenced).
You have 18 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.
April 27, 2021 - 05:17:33
Django version 3.2, using settings 'mysite.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CONTROL-C.
Error: That port is already in use. # ? ?? ?? ? ?? ? ? ? ?? ??
어떻게 해야하냐 . !
port 8000
과 관련된 모든 프로세스를 죽이고 다시 실행시켜야 한다 ^_ ^sudo lsof -t -i tcp:8000 | xargs kill -9
입력 -> 비밀번호 입력- 끝 ㅡ ㅡ
sudo lsof -t -i tcp:8000 | xargs kill -9 Password:
- 잘 돌아간ㄷ ㅏ !
base ❯ python manage.py runserver Watching for file changes with StatReloader Performing system checks... ` System check identified no issues (0 silenced). ` You have 18 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. April 27, 2021 - 05:24:15 Django version 3.2, using settings 'mysite.settings' Starting development server at http://127.0.0.1:8000/ Quit the server with CONTROL-C.