命令 netstat

netstat -atnp
netstat -nultp

 

查看端口占用情况

lsof -i:80

 

查看某个服务的端口

netstat -atnp|grep mysql

netstat -rn == route -n

 

posted @ 2020-04-14 12:01  破仔  阅读(95)  评论(0编辑  收藏  举报