Skip to content

Instantly share code, notes, and snippets.

@felipekm
felipekm / phantom_installation_failed_fix.md
Last active April 24, 2020 07:30
Phantom installation failed { Error: spawn ENOMEM }

Follow this steps

  • sudo fallocate -l 4G /swapfile - Creates a 4GB swapfile
  • sudo chmod 600 /swapfile - only root access
  • sudo mkswap /swapfile - Mark as a swap space
  • sudo swapon /swapfile - Enables it
  • echo "/swapfile none swap sw 0 0" | sudo tee -a /etc/fstab - Persist it over reboots
@nrollr
nrollr / MongoDB_macOS_Sierra.md
Last active April 1, 2024 16:23
Install MongoDB on Sierra using Homebrew

Install MongoDB on macOS Sierra

This procedure explains how to install MongoDB using Homebrew on macOS Sierra 10.12.
Official MongoDB install documentation: here

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"