关闭linux下的使用的端口

lsof -P -n -i

kill pid

另外防火墙 iptables之类的也可以关闭端口

原文地址:https://www.cnblogs.com/barrysgy/p/3312578.html