when I execute: ./mongod --dbpath=/usr/local/data/mongo_data the result is :Segmentation fault (core dumped) hope someone help me,thanks!
-
Did you try calling mongod directly? mongod --dbpath=/usr/local/data/mongo_dataPraneeth Nidarshan– Praneeth Nidarshan2018-11-22 06:38:13 +00:00Commented Nov 22, 2018 at 6:38
-
you mean mongod --dbpath=/usr/local/data/mongo_data?yes ,i tried ,but i didnt work, but i try to execute: ./bin/ mongod --dbpath=/usr/local/data/mongo_data,it works,do you know why?i use the ubuntu 18.10,but thank you so much for my first question,how do i follow you?zhaoyongxin– zhaoyongxin2018-11-22 07:05:25 +00:00Commented Nov 22, 2018 at 7:05
-
I tried your code by installing mongodb server on my ububtu 18 and the code worked. If you just started, I recommend to uninstall the current version and reinstall the mongodb server. Just a suggestion. 🙂Praneeth Nidarshan– Praneeth Nidarshan2018-11-22 07:20:42 +00:00Commented Nov 22, 2018 at 7:20
-
1ok, thank you, you are a really nice person.zhaoyongxin– zhaoyongxin2018-11-22 07:28:09 +00:00Commented Nov 22, 2018 at 7:28
Add a comment
|
1 Answer
@zhaoyongxin this steps will guide you uninstall apt-get remove or purge command from terminals
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 will store all your schema in your mongodb-data