终端命令
sudo lsof -i :8080
p.p1 { margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; background-color: #ffffff }
span.s1 { }
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
Python 11256 haha 3u IPv4 0xd74399cf9 0t0 TCP localhost:http-alt (LISTEN)
然后根据PID杀进程:
sudo kill -9 11256
原文地址:https://www.cnblogs.com/catherine007/p/8555937.html
时间: 2024-11-11 12:55:06