Reputation: 3967
I am getting this error when I try to grunt
after installing MEAN.io:
Error: failed to connect to [localhost:27017]
**Could not connect to MongoDB. Please ensure mongod is running and restart MEAN app.**
Do I need to take an extra step after installing MEAN.io in order for MongoDB to work?
Upvotes: 2
Views: 2730
Reputation: 2783
You can install mongodb as below:
$ sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10
$ echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list
$ sudo apt-get update
$ sudo apt-get install mongodb-10gen
Upvotes: 2