最近在创建Django项目后,运行时报Error: [WinError 10013] 以一种访问权限不允许的方式做了一个访问套接字的尝试。
"D:\Program Files (x86)\JetBrains\PyCharm 2016.2.1\bin\runnerw.exe" D:\Python35-32\python.exe "D:\Program Files (x86)\JetBrains\PyCharm 2016.2.1\helpers\pydev\pydevd.py" --multiproc --qt-support --client 127.0.0.1 --port 52288 --file D:/PycharmProjects/MyDjangoProject/manage.py runserver 8000
pydev debugger: process 4888 is connecting
Connected to pydev debugger (build 162.1628.8)
pydev debugger: process 5360 is connecting
Performing system checks...
System check identified no issues (0 silenced).
You have 13 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.
September 07, 2016 - 07:33:24
Django version 1.10.1, using settings 'MyDjangoProject.settings'
Starting development server at http://127.0.0.1:8000/
Quit the server with CTRL-BREAK.
Error: [WinError 10013] 以

在尝试运行Django项目时遇到了WinError10013错误,这是由于端口8000被其他进程占用。通过使用netstat和tasklist命令找出并关闭了占用端口的KGService.exe进程,成功释放了端口,从而解决了启动问题。

1287

被折叠的 条评论
为什么被折叠?



