MongoDb runs only with mongod but not with mongo -


after ran mongorestore mongo service fail start automatically, if open terminal , run mongod service running perfectlly. if close terminal get. suggestions?

error: couldn't connect server 127.0.0.1 shell/mongo.js:79

when i'm running mongod get:

mongodb starting : pid=1875 port=27017 dbpath=/data/db/ 64-bit thu jul 25 12:16:40 [initandlisten] db version v1.8.2, pdfile version 4.5 thu jul 25 12:16:40 [initandlisten] git version: nogitversion thu jul 25 12:16:40 [initandlisten] build sys info: linux allspice 2.6.24-28-server #1 smp wed aug 18 21:17:51 utc 2010 x86_64 boost_lib_version=1_46_1 thu jul 25 12:16:40 [initandlisten] * warning: spider monkey build without utf8 support. consider rebuilding utf8 support thu jul 25 12:16:40 [initandlisten] waiting connections on port 27017 thu jul 25 12:16:40 [websvr] web admin interface listening on port 28017 thu jul 25 12:17:05 [initandlisten] connection accepted 127.0.0.1:38257 #1

well, there's not information go on, usual check list is:

  • check mongodb's logs, see if reports odd (like failure start or shutdown when there should none).
  • make sure mongodb scheduled started automatically - if it's not, there's nothing surprising not running.
  • edit: forgot mention mongodb lock file, see covered that.

if it's meant run doesn't , doesn't log anything, suggest shut down sometime after computer booted , need restart it.

calling mongod starts server, not in daemon mode - killing shell in runs kill process. i'm sure there's wealth of documentation starting mongodb in daemon mode.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -