mongod时出现分段错误(核心已转储)

时间:2018-11-22 06:17:06

标签: ubuntu

执行时: ./mongod --dbpath = / usr / local / data / mongo_data 结果是:分段故障(核心已转储) 希望有人帮助我,谢谢!

1 个答案:

答案 0 :(得分:0)

@zhaoyongxin此步骤将指导您    从终端卸载apt-get remove或purge命令

1) navigate to the mongodb folder that has been downloaded for mongodb site
eg cd mongodb/bin/ 

2) create folder name mongodb-data or any other name like mkdir mongodb-data  

3) ./mongod --dbpath ~/mongodb-data/

./ mongod将所有模式存储在mongodb数据中