杜龙少(sdvdxl)

linux下根据端口号查询对应进程

Word count: 22 / Reading time: 1 min
2016/03/15 Share

适用于ip4

1
lsof -Pnl +M -i4 | grep port

适用于ip6

1
lsof -Pnl +M -i6 | grep port
CATALOG