Linux solves the problem of port occupation

1. Check the occupied ports.

netstat -tln

If the port number is known:

netstat -tln | grep 8080

2. Check which program is using this port number.

lsof -i :8080

3. Terminate this process.

kill -9 PID

Guess you like

Origin blog.csdn.net/Mercury_Lc/article/details/107112098