By default MongoDB uses /data/db as it’s location for databases. You need to create this dir and then chown it to the user running mongod. For example:
sudo chown username /data/db
More info here.
Articles, notes and random thoughts on Software Development and Technology
By default MongoDB uses /data/db as it’s location for databases. You need to create this dir and then chown it to the user running mongod. For example:
sudo chown username /data/db
More info here.