Setting up NodeJS app with NGINX and MongoDB on Ubuntu 20.04 Install nvm curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash nvm install --lts Install nginx sudo apt update sudo apt install nginx sudo ufw app list sudo ufw allow 'Nginx HTTP' sudo ufw allow 'OpenSSH' sudo ufw enable sudo ufw app list sudo ufw status systemctl status nginx Install MongoDB curl -fsSL https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add - echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.4.list sudo apt update sudo apt install mongodb-org sudo systemctl start mongod.service sudo systemctl enable mongod sudo systemctl status mongod mongo --eval 'db.runCommand({ connectionStatus: 1 })'