-1

I cannot kill the process that ocupying the port 8080. After I find the current process which takes the 8080 and kill it, it shows that there is another process would take the 8080.

First I try the cmd: lsof -i:8080

COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
java    6139     54u  IPv6 0x33cb33e85bbbdce9      0t0  TCP \*:http-alt (LISTEN)

Then executing the cmd: kill -9 6139 And try the lsof -i:8080 again:

COMMAND  PID USER   FD   TYPE             DEVICE SIZE/OFF NODE NAME
java    8704     54u  IPv6 0x33cb33e85bbb6ce9      0t0  TCP \*:http-alt (LISTEN)

And I also try to see the Parent Process:

ps -o pid,ppid,command -p 6139
PID  PPID COMMAND
6139     1 /opt/homebrew/opt/openjdk/bin/java -Dzookeeper.log.dir=/opt/homebre

It shows that the ppid is 1? Init process?

So how can I release the port 8080?

My PC: Macos

0

Browse other questions tagged or ask your own question.