English 中文(简体)
Mongodb
原标题:Mongodb can t start
  • 时间:2010-12-10 05:02:27
  •  标签:
  • mongodb

今天,我更新了我的Mongo.mongodb-stable(从10根传来)

but my service has down. the following command not working

$ sudo service mongodb start
$ start: Unknown job: mongodb

甚至连这名指挥官都没有工作

$ sudo /etc/init.d/mongodb start
$ Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mongodb start
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the start(8) utility, e.g. start mongodb
start: Unknown job: mongodb

没有开展任何省级进程

$ ps -ef|grep mongo
$ user  9689  8121  0 13:01 pts/1    00:00:00 grep --color=auto mongo

标识在此

tail /var/log/mongodb/mongodb.log 
Fri Dec 10 11:24:35 [conn4] end connection 127.0.0.1:54217
Fri Dec 10 11:25:35 [initandlisten] connection accepted from 127.0.0.1:54229 #5
Fri Dec 10 11:26:25 [initandlisten] connection accepted from 127.0.0.1:54243 #6
Fri Dec 10 11:26:30 [conn6] end connection 127.0.0.1:54243
Fri Dec 10 11:30:13 got kill or ctrl c or hup signal 15 (Terminated), will terminate after current cmd ends
Fri Dec 10 11:30:13 [interruptThread] now exiting
Fri Dec 10 11:30:13 dbexit: 

Fri Dec 10 11:30:13 [interruptThread] shutdown: going to close listening sockets...
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 5
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 6
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 7
Fri Dec 10 11:30:13 [interruptThread] closing listening socket: 8
Fri Dec 10 11:30:13 [interruptThread] shutdown: going to flush oplog...
Fri Dec 10 11:30:13 [interruptThread] shutdown: going to close sockets...
Fri Dec 10 11:30:13 [interruptThread] shutdown: waiting for fs preallocator...
Fri Dec 10 11:30:13 [interruptThread] shutdown: closing all files...
Fri Dec 10 11:30:13     closeAllFiles() finished

Fri Dec 10 11:30:13 [interruptThread] shutdown: removing fs lock...
Fri Dec 10 11:30:13 dbexit: really exiting now

现在,我正在通过这一指挥进行中刚果行动,只剩下一段时间,手工制作过程。

$ sudo mongod -f /etc/mongodb.conf

any idea? or has anyone updated Mongo-stable via Update manager?

<>载体>

这一mongodb版本是第1.6.5号,似乎由mongo小组以ug子将其释放。 他们立即将其定为第1.7.4号。 参看major priority issue

最佳回答
问题回答

发射标的<代码>mongo和# mongo 我得以发现:

  • /data/db is not present
    sudo mkdir -p /data/db
  • mongod is now an upstart
    sudo start --system mongod

(为乌班图14.04信托有效)

我拥有10.04个小型安装站,安装在灰色环境中。 甚至在我执行上述任务之后,我总是有同样的大屠杀。 只有以下<代码>sudo mongod -f /etc/mongodb.conf。 工作、任何方面?

您应提及哪些线性未爆炸物质分布和你使用的版本。

在Fedora 13和14号船上为我开工。

# service mongod status
mongod (pid 6403) is running...
# service mongod stop
Stopping mongod:                                           [  OK  ]
# service mongod start
Starting mongod: forked process: 7131
all output going to: /data/mongo/log/mongod.log
                                                               [  OK  ]

贵系统“chkconfig ep mongo”的产出是什么?

if you don t get any output from the command above, then you still need to correctly configure mongod as a service with "chkconfig" (see man chkconfig )

e.g:

chkconfig --add mongod
chkconfig --level 35 mongod on

之后,你应当获得这一产出:

# chkconfig | grep mongo
mongod          0:off   1:off   2:off   3:on    4:off   5:on    6:off

# service mongod status
mongod (pid 6403) is running...

如果程序没有进行,但你仍然可以这样做——只是删除“mongodb.lock”在你mongodb/data 上的档案。





相关问题
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</...

热门标签