作者热门文章
- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
尝试通过以下 redistogo 凭据连接到 redis 会出错。
var redisClient = require('redis').createClient({
host: 'birdeye.redistogo.com',
port: 1222,
db: 'redistogo',
pass: '012345c2f2402f7878588dd5fb129'
});
获取错误:-
Error Error: Redis connection to 127.0.0.1:[object Object] failed - getaddrinfo ENOTFOUND
最佳答案
var redisClient = require('redis').createClient( 1234, 'birdeye.redistogo.com', {detect_buffers: true});
连接。
redis.createClient(port, host, options)
Create a new client connection. port defaults to 6379 and host defaults to 127.0.0.1. If you have redis-server running on the same computer as node, then the defaults for port and host are probably fine. options in an object with the following possible properties:
来自 node_redis
关于connection - 连接到 redistogo 出现错误 :-,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20303249/
我正在开发一个 voip 调用应用程序。我需要做的是在接到来电时将 Activity 带到前台。我在应用程序中使用 Twilio,并在收到推送消息时开始调用。 问题是我试图在接到任何电话时显示 Act
我是一名优秀的程序员,十分优秀!