- Download MongoDB for Mac OS
- Extract the contents of the
tgzfile to/usr/local/mongo( or wherever ) - Create a new launch plist with the following content at
/Library/LaunchDaemons/com.mongo.db.plist(take note that you will need to change the User Name value in the below plist):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>com.mongo.db</string>