Redis远程连接失败,需要关闭防火墙
-
Windows下直接关闭。
-
linux下:
systemctl status firewalld 查看防火墙状态 systemctl status firewalld 查看防火墙是否自动开启 systemctl stop firewalld 关闭防火墙 #systemctl disable firewalld 禁用防火墙
问题:无法将“redis-server.exe”项识别为cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。
只需要将全部路径名称输入即可连接
G:/Redis/redis-cli.exe -h 192.168.183.128 -p 6379 -a 123456