View port occupancy
method one:
netstat -tunlp | grep 端口号
Way two:
lsof -i:端口号
View the process pid corresponding to the port
sudo netstat -antup
Get the corresponding port through pid
sudo netstat -antup|grep PID号
Reference article:
Mutual query of linux port number and PID
Linux View port occupancy
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。