Skip to content

Instantly share code, notes, and snippets.

@superstructor
Created July 21, 2023 23:01
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 superstructor/84fe13a808030b005a4f686e362f6c5f to your computer and use it in GitHub Desktop.
Save superstructor/84fe13a808030b005a4f686e362f6c5f to your computer and use it in GitHub Desktop.
MERN Stack Ubuntu 22.04
curl -fsSL https://deb.nodesource.com/setup_18.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -fsSL https://pgp.mongodb.com/server-6.0.asc | \
sudo gpg -o /usr/share/keyrings/mongodb-server-6.0.gpg \
--dearmor
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-6.0.gpg ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
sudo apt-get install -y mongodb-org
sudo systemctl start mongod
sudo npm install -g pm2
sudo pm2 startup systemd
sudo apt install -y nginx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment