终端命令
sudo lsof -i :9000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
x x x x 1234 a 313u IPv6 0x1111111111111 0t0 TCP *:cslistener (LISTEN)
然后根据PID杀进程:
sudo kill -9 1234
终端命令
sudo lsof -i :9000
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
x x x x 1234 a 313u IPv6 0x1111111111111 0t0 TCP *:cslistener (LISTEN)
然后根据PID杀进程:
sudo kill -9 1234