Mac Os Brew

Posted on  by admin

Install Go Lang on MacOS with Homebrew! I’ve started learning Go lang. It seems to be built by the right people with the right expectations. So, the first thing I did was install go on Mac with Homebrew. 👨‍💻 I’m teaching thousands of devs how to become VSCode Power Users → This site is super fast?! While OS X comes with a large number of Unix utilities, those familiar with Linux systems will notice one key component missing: a package manager. Homebrew fills this void. To install Homebrew, open Terminal or your favorite OS X terminal emulator and run $. Cakebrew - The Mac App for Homebrew. Homebrew is a package manager for OS X. With Homebrew you can install thousands of command-line applications and libraries that would require manual compilation, which is not always very straight-forward. The NVM (Node Version Manager) is a shell script used for installing and managing Node.js on a Linux based system. The macOS users can install NVM using the homebrew. This tutorial help you to install NVM on your macOS system and manage Node.js versions. Prerequisites You must have macOS desktop access with administrator privileges.

About the App

  • App name: ghostscript
  • App description: Interpreter for PostScript and PDF
  • App website:

Install the App

  1. Press Command+Space and type Terminal and press enter/return key.
  2. Run in Terminal app:
    ruby -e '$(curl -fsSL' < /dev/null 2> /dev/null
    and press enter/return key.
    If the screen prompts you to enter a password, please enter your Mac's user password to continue. When you type the password, it won't be displayed on screen, but the system would accept it. So just type your password and press ENTER/RETURN key. Then wait for the command to finish.
  3. Run:
    brew install ghostscript

Done! You can now use ghostscript.

Similar Software for Mac

MongoDB Atlasis a hosted MongoDB service option in the cloud which requires noinstallation overhead and offers a free tier to get started.


Use this tutorial to install MongoDB 4.4 Community Edition onmacOS using the third-party Homebrewpackage manager.

Starting with MongoDB 4.4.1, installing MongoDB via Homebrew alsoinstalls the MongoDB Database Tools. SeeUsing the MongoDB Database Tools for more information.

MongoDB Version¶

This tutorial installs MongoDB 4.4 CommunityEdition. To install a different version of MongoDB Community,use the version drop-down menu in the upper-left corner of this page toselect the documentation for that version.


Platform Support¶

MongoDB 4.4 Community Edition supports macOS 10.13 or later.

See Supported Platforms for more information.

Production Notes¶

Before deploying MongoDB in a production environment, consider theProduction Notes document which offersperformance considerations and configuration recommendations forproduction MongoDB deployments.

Install MongoDB Community Edition¶


Ensure your system meets each of the following prerequisites. You onlyneed to perform each prerequisite step once on your system. If youhave already performed the prerequisite steps as part of an earlierMongoDB installation using Homebrew, you can skip to theinstallation procedure.

Install Xcode Command-Line Tools¶

Homebrew requires the Xcode command-line tools from Apple's Xcode.

  • Install the Xcode command-line tools by running the followingcommand in your macOS Terminal:

Install Homebrew¶

macOS does not include the Homebrew brew package by default.

  • Install brew using the officialHomebrew installation instructions.

Installing MongoDB 4.4 Community Edition¶

Follow these steps to install MongoDB Community Edition using Homebrew'sbrew package manager. Be sure that you have followed theinstallation prerequisites above before proceeding.

  1. Tap the MongoDB Homebrew Tap to download the officialHomebrew formula for MongoDB and the Database Tools, by running thefollowing command in your macOS Terminal:

    If you have already done this for a previous installation of MongoDB,you can skip this step.

  2. To install MongoDB, run the following command in your macOS Terminalapplication:

Alternatively, you can specify a previous version of MongoDB ifdesired. You can also maintain multiple versions of MongoDB side byside in this manner.

If you have previously installed an older version of the formula,you may encounter a ChecksumMismatchError. To resolve, seeTroubleshooting ChecksumMismatchError.

The installation includes the following binaries:

  • The mongod server
  • The mongos sharded cluster query router
  • The mongo shell

Mac Os Brew Uninstall

In addition, the installation creates the following files anddirectories at the location specified below, depending on your Applehardware:

Intel Processor

See Apple's documentationfor the current list of Apple hardware using the M1 processor. You canalso run the following command to check where brew has installedthese files and directories:

Starting with MongoDB 4.4.1, the installation also includes theMongoDB Database Tools.See Using the MongoDB Database Tools for more information.

Run MongoDB Community Edition¶

Follow these steps to run MongoDB Community Edition. These instructionsassume that you are using the default settings.

You can run MongoDB as a macOS service using brew, or you can runMongoDB manually as a background process. It is recommended to runMongoDB as a macOS service, as doing so sets the correct systemulimit values automatically (seeulimit settings for more information).

  • To run MongoDB (i.e. the mongod process) as amacOS service, issue the following:

    To stop a mongod running as a macOS service, use thefollowing command as needed:

  • To run MongoDB (i.e. the mongod process) manuallyas a background process, issue the following:

    • For macOS running Intel processors:

    • For macOS running on Apple M1 processors:

    To stop a mongod running as a background process,connect to the mongod from the mongoshell, and issue the shutdown command as needed.

Both methods use the mongod.conf file createdduring the install. You can add your own MongoDBconfiguration options tothis file as well.

macOS may prevent mongod from running after installation. Ifyou receive a security error when starting mongodindicating that the developer could not be identified or verified,do the following to grant mongod access to run:

  • Open System Preferences
  • Select the Security and Privacy pane.
  • Under the General tab, click the button to the right of themessage about mongod, labelled either OpenAnyway or Allow Anyway depending on your version ofmacOS.

To verify that MongoDB is running, perform one of the following:

  • If you started MongoDB as a macOS service:

    You should see the service mongodb-community listed asstarted.

  • If you started MongoDB manually as a background process:

    You should see your mongod process in the output.

You can also view the log file to see the current status of yourmongod process: /usr/local/var/log/mongodb/mongo.log.

Connect and Use MongoDB¶

To begin using MongoDB, connect a mongo shell to therunning instance. From a new terminal, issue the following:

macOS may prevent the mongo shell from running after installation. Ifyou receive a security error when starting the mongo shellindicating that the developer could not be identified or verified,do the following to grant the mongo shell access to run:

  • Open System Preferences
  • Select the Security and Privacy pane.
  • Under the General tab, click the button to the right of themessage about the mongo shell, labelled either OpenAnyway or Allow Anyway depending on your version ofmacOS.

For information on CRUD (Create,Read,Update,Delete) operations, see:

Using the MongoDB Database Tools¶

Starting in MongoDB 4.4.1, installing MongoDB via brew also installsthe MongoDB Database Tools.

The MongoDB Database Tools are a collection ofcommand-line utilities for working with a MongoDB deployment,including data backup and import/export tools likemongoimport and mongodump as well as monitoringtools like mongotop.

Once you have installed the MongoDB Server in the steps above, theDatabase Tools are available directly from the command line in yourmacOS Terminal application. For example you could run mongotopagainst your running MongoDB instance by invoking it in yourmacOS Terminal like so:

It should start up, connect to your running mongod, and startreporting usage statistics.

See the MongoDB Database Tools Documentation for usage information foreach of the Database Tools.

Additional Information¶

Localhost Binding by Default¶

By default, MongoDB launches with bindIp set to127.0.0.1, which binds to the localhost network interface. Thismeans that the mongod can only accept connections fromclients that are running on the same machine. Remote clients will not beable to connect to the mongod, and the mongod willnot be able to initialize a replica set unless this value is setto a valid network interface.

This value can be configured either:

  • in the MongoDB configuration file with bindIp, or
  • via the command-line argument --bind_ip

Before binding to a non-localhost (e.g. publicly accessible)IP address, ensure you have secured your cluster from unauthorizedaccess. For a complete list of security recommendations, seeSecurity Checklist. At minimum, considerenabling authentication andhardening network infrastructure.

For more information on configuring bindIp, seeIP Binding.

Troubleshooting ChecksumMismatchError¶

If you have previously installed an older version of the formula,you may encounter a ChecksumMismatchError resembling the following:

To fix:

  1. Remove the downloaded .tgz archive.
  2. Retap the formula.

  3. Retry the install.

Mac Os Brew Uninstall

© MongoDB, Inc 2008-present. MongoDB, Mongo, and the leaf logo are registered trademarks of MongoDB, Inc.


Mac Os Versions

Install MongoDB Community on Amazon Linux using .tgz TarballInstall MongoDB Community on macOS using .tgz Tarball