" />
文章

检测端口占用问题

我们还是遇到了问题。让我们检查一下是否有其他 Python 进程在运行:

ps aux | grep python
zhiwei           14980  85.6  0.1 33711612  22384 s027  R+   11:36AM   1:04.15 /
Users/zhiwei/micromamba/bin/
python3.9 /Users/zhiwei/micromamba/bin/uvicorn advanced_main:app --reload --port
 8888                       zhiwei           14386  83.8  0.1 33711612  22844 s0
26  R+   11:34AM   2:26.84 /Users/zhiwei/micromamba/bin/
python3.9 /Users/zhiwei/micromamba/bin/uvicorn advanced_main:app --reload --port
 8080                       zhiwei           65056   0.0  0.0 34914060   7284
??  S    Tue11AM   0:00.28 node /private/tmp/bunx-502-@m
odelcontextprotocol/server-filesystem@latest/node_modules/.bin/mcp-server-filesy
stem /Users/zhiwei/Desktop /Users/zhiwei/pythonProjects /Users/zhiwei/frontProje
ct /Users/zhiwei/flutterProject /Users/zhiwei/thought /Users/zhiwei/apache /User
s/zhiwei/IdeaProjects
    zhiwei           15435   0.0  0.0 33597032    648 s029  R+   11:38AM   0:00.
00 grep --color=auto --exclude-d
ir=.bzr --exclude-dir=CVS --exclude-dir=.git --exclude-dir=.hg --exclude-dir=.sv
n --exclude-dir=.idea --exclude-dir=.tox python
                                                        zhiwei           14981
 0.0  0.0 33638708   3692 s027  S+   11:36AM   0:00.05 /Users/zhiwei/micromamba/
bin/
python3.9 -c from multiprocessing.resource_tracker import main;main(4)
                            zhiwei           14387   0.0  0.0 33630516   5068 s0
26  S+   11:34AM   0:00.05 /Users/zhiwei/micromamba/bin/
python3.9 -c from multiprocessing.resource_tracker import main;main(4)
                            zhiwei           10858   0.0  0.2 1245762992  26124
  ??  S    11:19AM   0:00.47 /Applications/Cursor.app/Co
ntents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugi
n) /Users/zhiwei/.cursor/extensions/tht13.python-0.2.3/node_modules/vscode-langu
ageclient/lib/utils/electronForkStart /Users/zhiwei/.cursor/extensions/tht13.pyt
hon-0.2.3/out/server/src/server.js
    zhiwei           10735   0.0  0.2 34454872  27368   ??  S    11:19AM   0:00.
29 node /Users/zhiwei/.npm/_npx/
a3241bba59c344f5/node_modules/.bin/mcp-server-filesystem /Users/zhiwei/Desktop /
Users/zhiwei/pythonProjects /Users/zhiwei/frontProject /Users/zhiwei/flutterProj
ect /Users/zhiwei/thought /Users/zhiwei/apache /Users/zhiwei/IdeaProjects

    zhiwei           10550   0.0  0.2 34638304  35716   ??  S    11:19AM   0:01.
32 npm exec @modelcontextprotoco
l/server-filesystem /Users/zhiwei/Desktop /Users/zhiwei/pythonProjects /Users/zh
iwei/frontProject /Users/zhiwei/flutterProject /Users/zhiwei/thought /Users/zhiw
ei/apache /Users/zhiwei/IdeaProjects                    zhiwei           10535
 0.0  1.0 1249609456 161524   ??  S    11:19AM   0:27.25 /Applications/Cursor.ap
p/Co
ntents/Frameworks/Cursor Helper (Plugin).app/Contents/MacOS/Cursor Helper (Plugi
n) /Users/zhiwei/.cursor/extensions/ms-python.vscode-pylance-2024.8.1/dist/serve
r.bundle.js --cancellationReceive=file:ab2cc438b5e1a591693c53baf76777c8eebb734a3
7 --node-ipc --clientProcessId=9971
    zhiwei           10061   0.0  0.0 33742032   1924   ??  S    11:18AM   0:01.
39 /Users/zhiwei/.cursor/extensi
ons/ms-python.python-2024.12.3-darwin-x64/python-env-tools/bin/pet server   
pkill -f uvicorn
License:  CC BY 4.0