这个mongodb的数据库在那建立啊
module.exports = {
port: 3000,
session: {
secret: 'myblog',
key: 'myblog',
maxAge: 2592000000
},
mongodb: 'mongodb://localhost:27017/myblog'
};
mongodb://localhost:27017/myblog就是这个myblog在哪里建立啊。
我是随便建立一个目录作为mongodb的存储数据的文件的。
You must first install the mongodb data inventory, and then use the mongodb management tool Robomongo to create the corresponding database
https://github.com/nswbmw/N-b...
Screenshot 2016-12-01 19.16.55.png
Whether you specify the storage location or the default storage location, you will see the dbpath="" in the picture, which is where the data is stored