我在EMR中运行了YARN群集。当ssh进入主节点并运行nmap 10.0.0.254
时,我得到以下结果
Starting Nmap 5.51 ( http://nmap.org ) at 2015-06-10 00:17 UTC
Nmap scan report for ip-10-0-0-254.ec2.internal (10.0.0.254)
Host is up (0.00045s latency).
Not shown: 987 closed ports
PORT STATE SERVICE
22/tcp open ssh
80/tcp open http
3306/tcp open mysql
8443/tcp open https-alt
8649/tcp open unknown
8651/tcp open unknown
8652/tcp open unknown
9000/tcp open cslistener
9101/tcp open jetdirect
9102/tcp open jetdirect
9103/tcp open jetdirect
9200/tcp open wap-wsp
14000/tcp open scotty-ft
我知道YARN资源管理器在10.0.0.254:9026上运行,但我在上面的结果中没有看到它,但是当我运行nmap -p 9026 10.0.0.254
时我得到了
Starting Nmap 5.51 ( http://nmap.org ) at 2015-06-10 00:18 UTC
Nmap scan report for ip-10-0-0-254.ec2.internal (10.0.0.254)
Host is up (0.000055s latency).
PORT STATE SERVICE
9026/tcp open unknown
为什么nmap
在运行第一个命令时不包含9026
上运行的服务?
答案 0 :(得分:1)
默认情况下,Nmap扫描每个协议最常见的1,000个端口(在您的情况下为TCP)9026不是最常见的端口之一。
以下是指定要扫描的端口的方法: http://nmap.org/book/man-port-specification.html