See which process is using the port

sudo lsof -i tcp:port

Such as

sudo lsof -i tcp:8080

Reproduced in: https: //my.oschina.net/dwq000/blog/1843391

Guess you like

Origin blog.csdn.net/weixin_34010949/article/details/91767706