Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
端口 80 正在使用中,所以我想知道如何终止在端口 80 上运行的进程。
尝试netstat -tupln找到您的端口的 PID。
netstat -tupln
然后你可以kill PID用来终止你的工作
kill PID
也许fuser命令就是你要找的。
fuser
fuser -k [port]/[protocol]
所以,在你的情况下:
fuser -k 80/tcp
该实用程序旨在识别使用文件或套接字的进程。您可以通过显示进程信息
fuser 80/tcp