如何查看linux端口被哪个进程占用

netstat -tunpl |grep 端口号
kill -9 pid
原文地址:https://www.cnblogs.com/linqiaobao/p/14282609.html