linux

查看某个端口被哪个程序占用

netstat -anp |grep 端口号

查看进程号对应的程序

ps -ef | grep pid号

查看指定端口号的进程情况

netstat -tunlp 端口号

原文地址:https://www.cnblogs.com/gaoyang666/p/12995344.html