[英]ECONNREFUSED error with memcache
Trying to play with memcache, Node raises ECONNREFUSED error connecting with the client, I have already tried changing with another ports with the same result and I have also restarted the computer, firewall and antivirus deactived. 尝试使用memcache,Node引发与客户端连接的ECONNREFUSED错误,我已经尝试使用相同结果更改另一个端口,并且我还重新启动了计算机,防火墙和防病毒deactived。 What could be the problem ?
可能是什么问题呢 ?
memcache = require("memcache");
client = new memcache.Client(11211, '127.0.0.1');
client.on('connect', function() {
console.log("memcache connectd"); //this will not be called
});
client.on('close', function() {
console.log("memcache closed"); //this is called!
});
client.on('timeout', function() {
console.log("memcache timeout");
});
client.on('error', function(e) {
if (e) console.log(e);
});
client.connect();
*Same problem with ALL! * ALL的问题一样! memcached, mysql, couchdb, everything raises this error!
memcached,mysql,couchdb,一切都引发了这个错误! D:
d:
. 。
The console output: 控制台输出:
$ node app.js
{ [Error: connect ECONNREFUSED]
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect' }
memcache closed
你需要先安装memcache服务器......
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.