终端命令
sudo lsof -i :8080
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
终端命令
sudo lsof -i :8080
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