3
我在ubuntu 11.04上安裝了MongoDB,之後是this網站。我把這個命令執行MongoDBmongo DB上的安裝錯誤
sudo /etc/init.d/mongodb start
它表現出一定的誤差這樣
sudo: /etc/init.d/mongodb: command not found
我檢查了file.But是okay.Can任何一個可以告訴我怎麼解決這個問題。
請幫我。我是mongoDB的新手。 [編輯]當我連接到蒙戈它顯示像
connecting to: test
Sun Jul 3 09:57:29 Error: couldn't connect to server 127.0.0.1 shell/mongo.js:79
當你說 '哪個mongod的' 會發生什麼。如果它找不到它,那麼你錯過了將$ MONGO_INSTALLATION/bin的內容添加到/ bin的步驟,就像博客的作者所說的那樣。另外,我建議使用10gen的說明,如下面的答案。 – lobster1234