运行Mac OS High Sierra。
在终端中运行以下命令
1st terminal mongod (it starts)
2nd terminal mongo (it starts)
3rd terminal mongodump -h ds1.mlab.com:276 -d heroku_ppggggg2 -u meuser -p V444N -o /dump
Segmentation fault: 11
不知道发生了什么事?
更新:
跟着这个超级大T
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/
一切都按照上面的链接说明,直到我运行mongo
运行mongo
的结果:
mongo
MongoDB shell version: 3.0.12
connecting to: test
Server has startup warnings:
2019-04-13T23:20:06.810-0500 I CONTROL [initandlisten]
2019-04-13T23:20:06.810-0500 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2019-04-13T23:20:06.810-0500 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2019-04-13T23:20:06.810-0500 I CONTROL [initandlisten]
我安装了社区v4.0但mongo说它运行3.0?
我跑
mongodump -h 16-a1.mlab.com:216 -d heroku_ppg2 -u jmen2 -p V3f22TN -o /backup
Segmentation fault: 11
mongodump --version
Segmentation fault: 11
brew update
Already up-to-date.
更新2:
通过Finder将旧的mongodb版本拖到垃圾箱并重新启动我的机器来解决此问题。