运行命令redis-server
,它返回:
The server is now ready to accept connections on port 6379
尝试在我的浏览器中连接localhost:6379我收到此消息:
Possible SECURITY ATTACK detected. It looks like somebody is sending POST or Host: commands to Redis. This is likely due to an attacker attempting to use Cross Protocol Scripting to compromise your Redis instance. Connection aborted.
有人可以帮我解决这个错误吗?
答案 0 :(得分:2)
您需要使用Redis客户端连接到Redis,而不是您的浏览器。查看此页面可查看少数https://redis.io/clients,或使用redis-cli
,甚至只使用普通的Telnet。