Linux网络编程之如何查看一个端口被那个进程所占用 方法一:ps -ef | grep 程序名方法二:netstat -nltp | grep 端口号或服务名方法三:netstat -antup | grep 端口号