English 中文(简体)
运行微型电源
原标题:Error while running mongo server
  • 时间:2012-05-13 23:21:24
  •  标签:
  • mongodb

I am totally a beginner with mac , I get this error while trying to open the server using mongod 10309 Unable to create/open lock file: /data/db/mongod.lock errno:13 Permission denied Is a mongod instance already running?, terminatin

最佳回答

http://www.mongodb.org/display/DOCS/Journaling>journalling/a。 能够做到: 如果没有,如果你不停,那么你可能需要恢复。 在这种情况下,你应当做些什么。

  1. start mongod with the repair switch: mongod --repair. It will run, and then terminate having deleted the lock file.
  2. start mongod again normally.

接下去,我高度建议您通过使用<代码>-journal使新闻得以发布。 当你开始下台时,指挥线就开了。

问题回答

错误通常表明,24小时档案仍然存在于前一次档案中。 也就是说,下游程序正在运行,检查:

ps auxwww | grep mongod

如果未列入名单,则会删除24小时档案并重新开始。 如果被列入清单,而且没有反应,你可能必须杀死这一进程(假定你不能连接)。 在杀人之前进行正常杀手——9 等。

If the process is not there, or you kill it successfully, remove the lock file and restart mongod - if you had journaling enabled everything should be fine. If not, you may need the repair operation suggested by Sean.

Run sudo mongodbecause you need to have admin access. From there, you just need to type in a password.

如果我记得何时需要<条码>。 我认为,MongoDB将假设,它所需要的基本目录已经存在,并自食其力。





相关问题
Access DB Ref MongoDB

Whats the best way to access/query a DB Ref: UPDATE: users: name, groupref : {$ref:"groups",$id:"ObjectId ..." } } groups: name, topic, country,...,.. Assumption is that user belongs to only one ...

MongoDB nested sets

What re the best practices to store nested sets (like trees of comments) in MongoDB? I mean, every comment can have a parent comment and children-comments (answers). Storing them like this: { ...

MongoMapper and migrations

I m building a Rails application using MongoDB as the back-end and MongoMapper as the ORM tool. Suppose in version 1, I define the following model: class SomeModel include MongoMapper::Document ...

MongoDB takes long for indexing

I have the following setup: Mac Pro with 2 GB of RAM (yes, not that much) MongoDB 1.1.3 64-bit 8 million entries in a single collection index for one field (integer) wanted Calling .ensureIndex(...) ...

Storing and accessing large amounts of data

My application creates pieces of data that, in xml, would look like this: <resource url="someurl"> <term> <name>somename</name> <frequency>somenumber</...

热门标签