Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6592229
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T17:31:39+00:00 2026-05-25T17:31:39+00:00

In my /usr/local/mongodb/mongod.conf file, I have # Store data alongside MongoDB instead of the

  • 0

In my /usr/local/mongodb/mongod.conf file, I have

# Store data alongside MongoDB instead of the default, /data/db/
dbpath = /usr/local/mongodb_data

# Only accept local connections
bind_ip = 127.0.0.1

But when I try to run Mongo (on my mac), I get an error:

Wed Sep 14 09:29:35 [initandlisten] exception in initAndListen std::exception: dbpath (/data/db/) does not exist, terminating

So apparently the conf file is not being read

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T17:31:40+00:00Added an answer on May 25, 2026 at 5:31 pm

    You must specify if you want it to use another config; there isn’t a default config file.

    See Here:
    File Based Configuration

    To achieve what you want to do; you can either specify your config path or start your mongo server like:

    mongod --dbpath /usr/local/mongodb_data
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

:/usr/local/bin# file wkhtmltopdf wkhtmltopdf: Mach-O executable i386 This file will not run. I have
I have unpacked the tar file in /usr/local and created a symbolic link in
Let's say that I have a jar file @ /usr/local/apps/app1/java/file.jar . I would like
this is the error: (mysite)zjm1126@zjm1126-G41MT-S2:~$ /usr/local/mongodb/bin/mongod /usr/local/mongodb/bin/mongod --help for help and startup options Wed
in /usr/local i now have two mysql folders: mysql-5.1.34-osx10.5-x86 mysql-5.1.37-osx10.5-x86_64 is it possible to
Looking in my /usr/local/lib/python.../dist-package directory, I have .egg directories and .egg files. Why does
I have a standard homebrew install inside of usr/local/ When I try: Larson-2:~ larson$
When I do 'open .profile' in the terminal I have the following: export PATH=$PATH:/usr/local/git/bin
I moved mvim to /usr/local/bin , so from Terminal if I type mvim file.html
I have MySQL installed in the /usr/local/bin/ . I need to be able to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.