Skip to content

查询端口占用情况

Tags:
# -t: all TCP
# -u: all UDP
# -l socket only
# -p: process id & name
# -n: 不进行dns轮询,仅显示ip
netstat -ntulp | grep 53

或者通过

lsof -i:53

然后就可以再用ps 来寻找相应的pid或者command了

Leave a Reply

Your email address will not be published.