私はMongoDB VMを構築していますが、それも機能しません。次のように出力されますDebianでMongodbが失敗する
After this operation, 0 B of additional disk space will be used.
Do you want to continue [Y/n]? y
[master 462b01d] saving uncommitted changes in /etc prior to apt run
Author: root <[email protected]>
1 files changed, 5 insertions(+), 5 deletions(-)
Setting up mongodb-10gen (2.4.5) ...
Starting database: mongodb failed!
invoke-rc.d: initscript mongodb, action "start" failed.
dpkg: error processing mongodb-10gen (--configure):
subprocess installed post-installation script returned error exit status 1
configured to not write apport reports
Errors were encountered while processing:
mongodb-10gen
E: Sub-process /usr/bin/dpkg returned an error code (1)
[email protected]:~#
私はMongoDBのWebサイトから公式install instructions次してきました。私はthis patch fixを見つけましたが、これもエラーを修正するものではなく、ただ新しいものを投げます。私はdpkg/statusから不良パッケージを削除することもできますが、エラーを修正することができますが、どこから起動するかはわかりません。
EDIT 1
は私がトップvoted answer hereの手順に続き、今私はモンゴシェルにアクセスすることができますが、私はそれはまだ失敗したと言うservice mongodb start
とき。私はシェルにアクセスすることができなかったので、それは何かです、そうですか?
[email protected]:~# service mongodb start
Starting database: mongodb failed!
[email protected]:~# mongo
MongoDB shell version: 2.4.5
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
http://docs.mongodb.org/
Questions? Try the support group
http://groups.google.com/group/mongodb-user
> ^C
bye
[email protected]:~#
なぜこの役立つだろうか?これは、ローカルホスト名が必要な他のものを破る可能性がありますか? – UpTheCreek
あなたがMongoをインストールするためにコメントアウトすれば、本当に何も破壊していない状態に戻すことができます。私にとっては、クラスタを作成しているときに6〜7回も役に立ちました。理論的にはそれは他のものを破壊する可能性がありますが、他の誰かがアプリケーションが誰でも変えることができる価値を信じるのはなぜですか?また、アプリは127.0.0.1と:: 1を使用し、理由のためにlocalhostを使用しません。 –