4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

mongo起動できない時の解消方法

Posted at

エラー内容

$ sudo service mongod start

あれ、、mongoが起動しない。

解消方法

### mongod.lock削除
sudo rm /var/lib/mongodb/mongod.lock

### 修復コマンド
mongod —repair

### mongoを起動
sudo service mongodb start

役に立ったコマンド

### システムログ表示
tail -f /var/log/syslog

### mongoのログ
tail -f /var/log/mongodb/mongod.log

参考サイト

[EC2]MongoDBが起動出来なくなって四苦八苦した話
Mongo can't start service

4
2
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
4
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?