铅笔蓝安装
Pencilblue installation
我对堆栈开发很陌生,但想学习。在尝试使用 pbctrl start 运行 pencilblue 时,出现以下错误:
错误信息
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:29.683Z - info: [M] SystemStartup: Log Level is: info
2015-10-12T12:36:29.992Z - info: [M] System[M]: 1 workers spawned. Listening for disconnects.
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:30.231Z - info: [1] SystemStartup: Log Level is: info
/Users/Illusion/peter/node_modules/mongodb/lib/server.js:228
process.nextTick(function() { throw err; })
^
Error: MongoError: connect ECONNREFUSED 127.0.0.1:27017 - mongodb://127.0.0.1:27017/pencilblue
Is your instance running?
at /Users/Illusion/peter/include/dao/db_manager.js:84:31
at /Users/Illusion/peter/node_modules/mongodb/lib/mongo_client.js:236:20
at /Users/Illusion/peter/node_modules/mongodb/lib/db.js:203:14
at null.<anonymous> (/Users/Illusion/peter/node_modules/mongodb/lib/server.js:226:9)
at g (events.js:260:16)
at emitTwo (events.js:87:13)
at emit (events.js:172:7)
at null.<anonymous> (/Users/Illusion/peter/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:255:68)
at g (events.js:260:16)
at emitTwo (events.js:87:13)
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:30.900Z - info: [2] SystemStartup: Log Level is: info
/Users/Illusion/peter/node_modules/mongodb/lib/server.js:228
process.nextTick(function() { throw err; })
你能指出哪里做错了吗?
看起来 MongoDB 不是 运行。 ECONNREFUSED 127.0.0.1:27017
表示 PencilBlue 正在尝试使用端口 27017 访问本地主机上的 MongoDB。确保该端口上的 MongoDB 是 运行 并重新启动 PencilBlue。
我对堆栈开发很陌生,但想学习。在尝试使用 pbctrl start 运行 pencilblue 时,出现以下错误:
错误信息
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:29.683Z - info: [M] SystemStartup: Log Level is: info
2015-10-12T12:36:29.992Z - info: [M] System[M]: 1 workers spawned. Listening for disconnects.
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:30.231Z - info: [1] SystemStartup: Log Level is: info
/Users/Illusion/peter/node_modules/mongodb/lib/server.js:228
process.nextTick(function() { throw err; })
^
Error: MongoError: connect ECONNREFUSED 127.0.0.1:27017 - mongodb://127.0.0.1:27017/pencilblue
Is your instance running?
at /Users/Illusion/peter/include/dao/db_manager.js:84:31
at /Users/Illusion/peter/node_modules/mongodb/lib/mongo_client.js:236:20
at /Users/Illusion/peter/node_modules/mongodb/lib/db.js:203:14
at null.<anonymous> (/Users/Illusion/peter/node_modules/mongodb/lib/server.js:226:9)
at g (events.js:260:16)
at emitTwo (events.js:87:13)
at emit (events.js:172:7)
at null.<anonymous> (/Users/Illusion/peter/node_modules/mongodb/node_modules/mongodb-core/lib/topologies/server.js:255:68)
at g (events.js:260:16)
at emitTwo (events.js:87:13)
Override file [/Users/Illusion/peter/config.js] will be applied.
2015-10-12T12:36:30.900Z - info: [2] SystemStartup: Log Level is: info
/Users/Illusion/peter/node_modules/mongodb/lib/server.js:228
process.nextTick(function() { throw err; })
你能指出哪里做错了吗?
看起来 MongoDB 不是 运行。 ECONNREFUSED 127.0.0.1:27017
表示 PencilBlue 正在尝试使用端口 27017 访问本地主机上的 MongoDB。确保该端口上的 MongoDB 是 运行 并重新启动 PencilBlue。