linux 停止对某个端口的监听

1、通过"netstat -anp" 来查看哪些端口被打开。

2、关掉对应的应用程序,则端口就自然关闭了,如:"kill -9 PID" (PID:进程号)

猜你喜欢

转载自www.cnblogs.com/apple2016/p/9267451.html