Created
July 21, 2023 23:01
-
-
Save superstructor/84fe13a808030b005a4f686e362f6c5f to your computer and use it in GitHub Desktop.
MERN Stack Ubuntu 22.04
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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