linux 检测服务器端口工具

#nmp#

nmap 127.0.0.1

#netstat#

netstat -anlp | grep 22

#telnet#

   服务器端口即使处于监听状态,但是防火墙iptables屏蔽了该端口,是无法通过该方法检测端口是否开放

#屏蔽与关闭#

 对应服务器开启,一般端口就开启了,不能访问,可能是由于防火墙的限制,导致端口被屏蔽了。

原文地址:https://www.cnblogs.com/lishidefengchen/p/10613386.html