{"id":19517507,"url":"https://github.com/carloscharz/installingmongodb","last_synced_at":"2026-02-04T09:37:48.407Z","repository":{"id":70591539,"uuid":"43629455","full_name":"carlosCharz/installingmongodb","owner":"carlosCharz","description":"Installing mongoDB on a MAC","archived":false,"fork":false,"pushed_at":"2015-10-04T12:34:55.000Z","size":368,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-26T00:12:28.461Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/carlosCharz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-04T08:09:34.000Z","updated_at":"2018-03-27T06:10:23.000Z","dependencies_parsed_at":"2023-03-07T09:15:39.923Z","dependency_job_id":null,"html_url":"https://github.com/carlosCharz/installingmongodb","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/carlosCharz/installingmongodb","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosCharz%2Finstallingmongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosCharz%2Finstallingmongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosCharz%2Finstallingmongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosCharz%2Finstallingmongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/carlosCharz","download_url":"https://codeload.github.com/carlosCharz/installingmongodb/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/carlosCharz%2Finstallingmongodb/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266473036,"owners_count":23934475,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T00:04:20.538Z","updated_at":"2026-02-04T09:37:43.386Z","avatar_url":"https://github.com/carlosCharz.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"Installing MongoDB on a MAC\n================\n\nA simple guide to install MongoDB on a MAC. Based on [MongoDB Tutorial | Installing MongoDB On A MAC - Part 1](https://www.youtube.com/watch?v=-GE2DpwfbW0)\n\n##### 1. Download mongoDB\n[MongoDB Download Web Page](https://www.mongodb.org/downloads)\n\n##### 2. Extract the files from the downloaded archive\nEasy way: Double-click the downloaded archive\n\nOR\n```\ntar -zxvf mongodb-osx-x86_64-n.n.n.tgz\n```\n\n##### 3. Copy the extracted archive to the target directory\nEasy way: Rename the folder (mongodb) and move to the user directory (/Users/charz/)\n\nOR\n```\nmv /Users/charz/Downloads/mongodb-osx-x86_64-n.n.n /Users/charz/mongodb\n```\n\n##### 4. Create the data folder\nEasy way: Create the folder structure: data/db under your user directory (/Users/charz)\n\nOR\n```\nmkdir /Users/charz/data\nmkdir /Users/charz/data/db\n```\n\n##### 5. Put the binaries in the path\n```\ncd $HOME (just to make sure you are in the user directory folder - /Users/charz)\necho “export PATH=$PATH:/Users/charz/mongodb/bin” \u003e.bash_profile\n```\nTo make sure it was created correctly:\n```\nls -la (the .bash_profile file should appear)\ncat .bash_profile (the mongodb/bin folder should appear)\n```\nExit the terminal app and reopen it\n\n##### 6. Create a mongod.conf file\nMy mongod.conf file\n```\n# mongod.conf\n\n# for documentation of all options, see:\n#   http://docs.mongodb.org/manual/reference/configuration-options/\n\n# where to write logging data.\nsystemLog:\n  destination: file\n  logAppend: true\n  path: /Users/charz/mongodb/mongod.log\n\n# Where and how to store data.\nstorage:\n  dbPath: /Users/charz/data/db\n  journal:\n    enabled: true\n#  engine:\n#  mmapv1:\n#  wiredTiger:\n```\n\nCopy my sample from the lines above or from [MongoDB Github](https://github.com/mongodb/mongo/blob/master/rpm/mongod.conf)\n```\nOpen TextEdit\nFormat - Make Plain Text\nChange “logpath=” and “dbpath=”\nSave to /Users/charz/mongodb/mongod.conf (to your mongodb folder installation)\n```\n\n##### 7. Start mongoDB\n```\nmongod -f /Users/charz/mongodb/mongod.conf (it should not give you any error)\n```\n\"mongod\" to open the mongodb server\n\n##### 8. Test mongoDB\nOpen a new terminal app\n```\nmongo\nuse mydb\ndb.test.save({a:1})\ndb.test.find() (the object just created should appear)\n```\n\"mongo\" to open the mongodb client\n\n* New contributions and/or corrections are very WELCOME!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloscharz%2Finstallingmongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcarloscharz%2Finstallingmongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcarloscharz%2Finstallingmongodb/lists"}