Install mongodb on ubuntu with apt-get error
I am trying to install mongoDB on Ubuntu Server 14.04 with apt-get.
My ist command sudo apt-get install mongodb-org -y
After installation I try to run sudo service mongod start
Output Signalmongod start/running, process 11977
Attempting to get status sudo service mongod status
outputs mongod stop/waiting
Attempting to stop mongod sudo service mongod stop
printsstop: Unknown instance:
When I type mongo
in the command line, I get this
MongoDB shell version: 2.6.3
connecting to: test
2014-08-02T11:49:28.781+0200 warning: Failed to connect to 127.0.0.1:27017, reason: errno:111 Connection refused
2014-08-02T11:49:28.782+0200 Error: couldn't connect to server 127.0.0.1:27017 (127.0.0.1), connection attempt failed at src/mongo/shell/mongo.js:146
exception: connect failed
What am I doing wrong?
source to share