我在安装MEAN.io后尝试grunt
时遇到此错误:
Error: failed to connect to [localhost:27017]
**Could not connect to MongoDB. Please ensure mongod is running and restart MEAN app.**
我需要在安装MEAN后采取额外的步骤吗?io为了MongoDB的工作?
您可以按照以下方式安装mongodb:
$ 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