MongoDB(最新の安定版ではなく標準のUbuntuビルド)をインストールしたばかりですが、何らかの理由で接続できません:
Mon Feb 6 03:11:22 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:79
exception: connect failed
今、私のマシンは127.xx1ではありません。何らかの理由でxxx2です(しかし、そのアドレスにバインドするように構成を変更しました。また、役に立たなかったパブリックIPにバインドしようとしました。
構成:
#mongodb.conf
# Where to store the data.
# Note: if you run mongodb as a non-root user (recommended) you may
# need to create and set permissions for this directory manually,
# e.g., if the parent directory isn't mutable by the mongodb user.
dbpath=/var/lib/mongodb
#where to log
logpath=/var/log/mongodb/mongodb.log
logappend=true
bind_ip = 199.21.114.XX
port = 27017
ログを確認しましたが、スタートアップ情報のみが表示されています。
また、デーモンも実行されていることを確認しました。これは、手動で実行してみました--fork
。
誰かがこれに遭遇したことがありますか?または何か提案はありますか?
どうも
アップデート:
再起動後-ログは次のとおりです。
** WARNING: You are running in OpenVZ. This is known to be broken!!!
Tue Feb 7 19:43:32 [initandlisten] db version v1.8.2, pdfile version 4.5
Tue Feb 7 19:43:32 [initandlisten] git version: nogitversion
Tue Feb 7 19:43:32 [initandlisten] build sys info: Linux allspice 2.6.24-28-se$
Tue Feb 7 19:43:32 [initandlisten] *** warning: spider monkey build without ut$
Tue Feb 7 19:43:32 [initandlisten] waiting for connections on port 27017
Tue Feb 7 19:43:32 [websvr] web admin interface listening on port 28017