2017-05-12

MongoDB & MacOS - How to create a file that will start the server on double click

Create a simple text file with the command (below is the command I use), and name it with a ".command" extension.

Then gain execution rights on it.
chmod u+x /PATH/FILE_NAME.command

The command... customize the path to fit your system.
/Applications/mongodb/bin/mongod --dbpath /PATH_TO_DATABASE

No comments:

Post a Comment