Skip to content

Instantly share code, notes, and snippets.

@crapthings
Created December 3, 2017 13:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crapthings/ffc2e19404d8713be6b0fc77a5084603 to your computer and use it in GitHub Desktop.
Save crapthings/ffc2e19404d8713be6b0fc77a5084603 to your computer and use it in GitHub Desktop.
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 0C49F3730359A14518585931BC711F9BA15703C6
echo "deb [ arch=amd64,arm64 ] http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-3.4.list
wget https://nginx.org/keys/nginx_signing.key -O - | sudo apt-key add -
echo "deb http://nginx.org/packages/ubuntu/ xenial nginx
deb-src http://nginx.org/packages/ubuntu/ xenial nginx" | sudo tee /etc/apt/sources.list.d/nginx.list
apt update
apt install -y build-essential python mongodb-org nginx
DBPATH=/data/db
mkdir -p $DBPATH chmod 777 $DBPATH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment