MirrorBlog

Linux如何监听端口

常用的两个代码:

#已经用的端口有那些
sudo lsof -i -P -n | grep LISTEN

#监听123端口在干啥
netstat -tulpn | grep :123
退出移动版