LoginSignup
18
16

More than 5 years have passed since last update.

mongodが起動していなかった時の対処メモ

Last updated at Posted at 2013-06-09

先日、サーバー障害が発生してから気づかなかったがmongoが動いてない事に気づいた時のメモ

起動してみる
# /etc/init.d/mongod start
Starting mongod: all output going to: /var/log/mongo/mongod.log
forked process: 52609

# ps ax | grep mongo
30314 pts/0 S+ 0:00 grep mongo
動いてないっぽい。

# /etc/init.d/mongod status
mongod は停止していますがサブシテムがロックされています

# find /var -type f -name mongod
/var/lib/mongo/mongod.lock
ロックファイル発見

# rm -f /var/lib/mongo/mongod.lock
迷わず消す!

# /etc/init.d/mongod start
Starting mongod: forked process: 32313
動いた

18
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
16