Error: [WinError 10013] 以一種訪問權限不允許的方式做了一個訪問套接字的嘗試
-
問題描述
PS D:\web\djangoweb> python .\manage.py runserver
Performing system checks...
System check identified no issues (0 silenced).
Run 'python manage.py migrate' to apply them.
August 30, 2021 - 11:06:58
Starting development server at http://127.0.0.1:8000/
Error: [WinError 10013] 以一種訪問權限不允許的方式做了一個訪問套接字的嘗試忘瓦。
PS D:\web\djangoweb> -
造成原因
一般情況是啟動是端口被占用,只要把占用端口的應用程序kill就行
-
具體步驟
-
查看端口占用情況
cmd> netstat -ano|findstr 8000
PS D:\web\djangoweb> netstat -ano |findstr 8000
TCP???0.0.0.0:8000??0.0.0.0:0??LISTENING 14140
UDP???0.0.0.0:8000??*:*???????????14140
PS D:\web\djangoweb> -
找出對應pid的進程詳細信息
cmd> tasklist |findstr 14140
PS D:\web\djangoweb> tasklist |findstr 14140
KGService.exe??14140?Consolep?????1? 21,828 K -
殺死對應的進程
cmd> taskkill /pid 14140 /F
-