问题原文
原帖链接 · Majid Fouladpour · CC BY-SA 3.0
Redis Quick Start states:
Make sure the port Redis uses to listen for connections (by default 6379 and additionally 16379 if you run Redis in cluster mode, plus 26379 for Sentinel) is firewalled, so that it is not possible to contact Redis from the outside world.
Is there a short command to check if the ports are firewalled?
Typically, I have ufw installed on the hosts (almost always Ubuntu), but not nmap.
已采纳解答
原帖链接 · Alexander Makarenko · CC BY-SA 3.0
for port in 6379 16379 26379;do nc -zv 127.0.0.1 $port;done
Ofcause, you should use another server to check your firewall from the outside and not from the localhost to be sure that apps are blocked.
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
