初学者问题。
下面是 Cradle CouchDB 文档中给出的示例: https ://github.com/cloudhead/cradle
什么是5984?
new(cradle.Connection)('http://living-room.couch', 5984, {
cache: true,
raw: false
});
我正在尝试从我的 couchdb 获取信息:
网址:subdomain.mywebsite.com
节点端口:12345
沙发数据库端口:67891
我尝试了使用上述代码进行连接的不同方法,但出现以下错误。
什么是正确的连接方式?
17 May 09:50:57 - [nodemon] restarting due to changes...
17 May 09:50:57 - [nodemon] ./test_couch.js
17 May 09:50:57 - [nodemon] starting node
Server running somewhere
request starting...
request starting...
node.js:181
throw e; // process.nextTick error, or 'error' event on first tick
^
Error: ECONNREFUSED, Connection refused
at Socket._onConnect (net.js:602:18)
at IOWatcher.onWritable [as callback] (net.js:186:12)
17 May 09:51:05 - [nodemon] app crashed - waiting for file change before starting...