Skip to content

Instantly share code, notes, and snippets.

@cigolpl
Created April 22, 2017 13:24
Show Gist options
  • Save cigolpl/4a49e2f353ffe7c0f9412bf384c84486 to your computer and use it in GitHub Desktop.
Save cigolpl/4a49e2f353ffe7c0f9412bf384c84486 to your computer and use it in GitHub Desktop.
Install Node.js + MongoDB with Docker on Ubuntu
#!/bin/bash
docker run --name some-mongo -p 27017:27017 -d mongo
cd ~
curl -sL https://deb.nodesource.com/setup_6.x -o nodesource_setup.sh
sudo apt-get update
sudo bash nodesource_setup.sh
sudo apt-get install nodejs
sudo apt-get install build-essential
npm install pm2 -g
service ufw stop
apt install htop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment