1

当我跑mongod

此行返回

all output going to: /usr/local/var/log/mongodb/mongo.log

但紧随其后的是我的提示。

在我的mongodb.log文件中,错误显示为

Thu Nov  7 10:44:55.968 [initandlisten] info preallocateIsFaster couldn't run due to: couldn't open file /usr/local/var/mongodb/journal/tempLatencyTest for writing errno:13 Permission denied; returning false
Thu Nov  7 10:44:55.968 [initandlisten] exception in initAndListen: 13516 couldn't open file /usr/local/var/mongodb/journal/j._0 for writing errno:13 Permission denied, terminating
Thu Nov  7 10:44:55.968 dbexit:·
4

1 回答 1

3

It's definitely a permissions issue as errno:13 describes.

Try sudo mongod

于 2013-11-07T21:39:16.607 回答