我已经使用mongodb-10gen debian包安装了mongodb 2.0.3.一切都很顺利,只是默认安装的服务在计算机启动时没有启动.mongod
仅以root用户身份运行.也许这就是原因.但据我所知,这些服务应该正在运行,因为它们是由root用户添加的.
解决方案可能是什么?
如果我只跑mongod
Tue Mar 27 13:00:44 [initandlisten] couldn't open /data/db/transaction_processor_dummy_development.ns errno:1 Operation not permitted
如果我跑sudo service mongodb start
,它会说:
mongodb start/running, process 4861
但是,当用htop
和mongo
进行观察时,没有任何过程表明:
MongoDB shell version: 2.0.3
connecting to: test
Tue Mar 27 13:02:40 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:84
exception: connect failed