© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Sandeep Panda
co-founder, Hashnode
Yes, you need to create a directory which will be used by MongoDB for data storage. For example, you can manually create a directory called ~/data/mongodata and start MongoDB as mongod --dbpath ~/data/mongodata.
~/data/mongodata
mongod --dbpath ~/data/mongodata
Makes sense. Thanks Sandeep!