

If you're using Boot Camp to start up from Microsoft Windows, set Startup Disk preferences to start up from macOS instead. Then shut down or restart and try again.Some key combinations don't work when your Mac is using a firmware password. Startup Manager/Boot From USB: Option Safe Mode: Shift Apple Hardware Test/Apple Diagnostics: D Reset PRAM/NVRAM: Cmd + Option + P + R Reset SMC: Shift +.If you're using a keyboard made for a PC, such as a keyboard with a Windows logo, try a keyboard made for Mac. Or use your built-in keyboard or a wired keyboard. If you're using a wireless keyboard, plug it into your Mac, if possible.Some keyboards have a light that flashes briefly at startup, indicating that the keyboard is recognized and ready for use. You might need to wait a few seconds before pressing the keys, to give your Mac more time to recognize the keyboard as it starts up.Then press and hold the key combination after pressing the power button to turn on your Mac. If you can't shut down, press and hold the power button for up to 10 seconds, until your Mac turns off. If you can't get a key combination to work when restarting your Mac, shut down your Mac first.Press and hold all keys in the combination together, not one at a time.To get rid of the item simply replace load in the above command with unload. As a bonus, launchd will monitor it and, if it exits for any reason, it will be re-started. This will cause launchd to load the item which will cause it to start MongoDB on boot. Save this in /Library/LaunchAgents/ (you will need an administrator account and/or sudo), then open a terminal and do: sudo launchctl load /Library/LaunchAgents/ This is an XML file, so you can do it with your favourite text editor or alternatively you can use the Property List Editor that's installed with the Mac OS X Dev Tools. If you don't want to use Lingon, you need to create a launchd Property List. To run a command on start up on OS X, you need to use launchd.
