安装了redis但在nmap的扫描中看不到它

Y3N*_*RRR 0 centos redis

Redis 已安装并且看起来正在运行:

\n\n
[me@hsredistest01 ~]$ sudo systemctl status redis\n\xe2\x97\x8f redis.service - Redis persistent key-value database\n   Loaded: loaded (/usr/lib/systemd/system/redis.service; enabled; vendor preset: disabled)\n  Drop-In: /etc/systemd/system/redis.service.d\n           \xe2\x94\x94\xe2\x94\x80limit.conf\n   Active: active (running) since Mon 2019-04-22 19:03:35 +03; 34min ago\n Main PID: 8780 (redis-server)\n   CGroup: /system.slice/redis.service\n           \xe2\x94\x94\xe2\x94\x808780 /usr/bin/redis-server 127.0.0.1:6379\n
Run Code Online (Sandbox Code Playgroud)\n\n

这里说正在运行端口 6379,但是当我扫描正在运行的服务端口时,我看不到它。

\n\n
[me@hsredistest01 ~]$ sudo nmap -sT -O localhost\n\nStarting Nmap 6.40 ( http://nmap.org ) at 2019-04-22 19:40 +03\nNmap scan report for localhost (127.0.0.1)\nHost is up (0.000078s latency).\nOther addresses for localhost (not scanned): 127.0.0.1\nNot shown: 996 closed ports\nPORT    STATE SERVICE\n22/tcp  open  ssh\n25/tcp  open  smtp\n111/tcp open  rpcbind\n199/tcp open  smux\nDevice type: general purpose\nRunning: Linux 3.X\nOS CPE: cpe:/o:linux:linux_kernel:3\nOS details: Linux 3.7 - 3.9\nNetwork Distance: 0 hops\n\nOS detection performed. Please report any incorrect results at http://nmap.org/submit/ .\nNmap done: 1 IP address (1 host up) scanned in 1.73 seconds\n
Run Code Online (Sandbox Code Playgroud)\n\n

我只想在浏览器中输入 192.168.0.23:6370 并看到类似Redis is fine消息的内容。

\n

Gra*_*art 6

您没有运行nmap到达端口 6379 的扫描,默认情况下仅扫描 1000 个最常见的开放端口

您可以将单个端口传递给 nmap:nmap -p 6379 -sT -O localhost

或者您可以传递一系列端口:nmap -p 1-65535 -sT -O localhost

扫描的端口越多,花费的时间就越长。

另外,请确保您的防火墙允许连接到该端口,否则nmap将看不到它。