Mongod命令没有持久化

时间:2013-11-07 19:49:07

标签: mongodb permissions

当我运行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:·

1 个答案:

答案 0 :(得分:3)

这绝对是errno:13描述的权限问题。

尝试sudo mongod