我是 Deployd 的新手,正在尝试打开仪表板。我首先创建了一个基本的hello-world
项目文件夹:
$ cd hello-world
...然后运行以下命令查看仪表板:
$ dpd-d
但是,我收到以下错误:
vaibhav@vaibhav:/hello-world$ dpd -d
starting deployd v0.8.4...
Failed to start MongoDB (Make sure 'mongod' are in your $PATH or use dpd --mongod option. Ref: http://docs.deployd.com/docs/basics/cli.html)
bye
fs.js:432
return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
^
Error: EACCES, permission denied './.dpd/pids/mongod'
at Object.fs.openSync (fs.js:432:18)
at Object.fs.writeFileSync (fs.js:971:15)
at process.kill (/usr/local/lib/node_modules/deployd/lib/util/mongod.js:52:8)
at process.EventEmitter.emit (events.js:95:17)
at process.exit (node.js:707:17)
at fn (/usr/local/lib/node_modules/deployd/bin/dpd:261:5)
at stop (/usr/local/lib/node_modules/deployd/bin/dpd:270:5)
at startup (/usr/local/lib/node_modules/deployd/bin/dpd:162:16)
at ChildProcess.<anonymous> (/usr/local/lib/node_modules/deployd/lib/util/mongod.js:62:5)
at ChildProcess.EventEmitter.emit (events.js:95:17)
at Process.ChildProcess._handle.onexit (child_process.js:795:12)
`
我究竟做错了什么?