最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

Redis节点:就绪检查失败:NOAUTH需要验证

IT培训 admin 4浏览 0评论

Redis节点:就绪检查失败:NOAUTH需要验证

在安装了数字海洋指南中的redis后,我在npm使用redis软件包。我使用他们帖子的one来保护它。我将requirepass设置为密码,然后登录到我的redis-cli并成功验证自己。但我无法从我的Node.js应用程序中做同样的事情。

这是我在Node中的配置

client = redis.createClient({
        no_ready_check: true,
        host : 'ip address',
        port : port
});
    client.auth('secretPassword', function(err, doc){
        if(err)
            throw err;
        else if(doc === "OK"){
            console.log("Authenticated");
        }
    });
    client.on('error' , function (err) {
        console.log("Error");

    });

我跑完之后。我收到这个错误

events.js:160
      throw er; // Unhandled 'error' event
      ^
ReplyError: Ready check failed: NOAUTH Authentication required.
    at parseError (/home/ubuntu/demo/vehico-workers/node_modules/redis-parser/lib/parser.js:181:12)
    at parseType (/home/ubuntu/demo/vehico-workers/node_modules/redis-parser/lib/parser.js:291:14)

根据我的最佳猜测,node-redis驱动程序没有正确实现它,因为我能够从cli验证,但不能从Node应用程序验证。是否有成功在AWS EC2上运行安全redis.conf的人?

回答如下:

我有同样的问题,并没有在互联网上找到任何解决方案。

我在setting.js中将指令传递更改为密码

redis: { host: "192.168.x.xx", password: '******', port: 6379 },
storageModule: require("node-red-contrib-redis-storage"),

它运作良好。

Redis节点:就绪检查失败:NOAUTH需要验证

在安装了数字海洋指南中的redis后,我在npm使用redis软件包。我使用他们帖子的one来保护它。我将requirepass设置为密码,然后登录到我的redis-cli并成功验证自己。但我无法从我的Node.js应用程序中做同样的事情。

这是我在Node中的配置

client = redis.createClient({
        no_ready_check: true,
        host : 'ip address',
        port : port
});
    client.auth('secretPassword', function(err, doc){
        if(err)
            throw err;
        else if(doc === "OK"){
            console.log("Authenticated");
        }
    });
    client.on('error' , function (err) {
        console.log("Error");

    });

我跑完之后。我收到这个错误

events.js:160
      throw er; // Unhandled 'error' event
      ^
ReplyError: Ready check failed: NOAUTH Authentication required.
    at parseError (/home/ubuntu/demo/vehico-workers/node_modules/redis-parser/lib/parser.js:181:12)
    at parseType (/home/ubuntu/demo/vehico-workers/node_modules/redis-parser/lib/parser.js:291:14)

根据我的最佳猜测,node-redis驱动程序没有正确实现它,因为我能够从cli验证,但不能从Node应用程序验证。是否有成功在AWS EC2上运行安全redis.conf的人?

回答如下:

我有同样的问题,并没有在互联网上找到任何解决方案。

我在setting.js中将指令传递更改为密码

redis: { host: "192.168.x.xx", password: '******', port: 6379 },
storageModule: require("node-red-contrib-redis-storage"),

它运作良好。

发布评论

评论列表 (0)

  1. 暂无评论