0% found this document useful (0 votes)
22 views

Mongo, Node Install On Server Commands

The document provides instructions for installing Node.js and MongoDB on Ubuntu. For Node.js, it describes downloading a setup script, configuring it, and installing Node.js. For MongoDB, it outlines adding the MongoDB repository key, updating package lists, and installing and starting MongoDB. Both sections include links to more detailed installation guides.

Uploaded by

Muhamman Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
22 views

Mongo, Node Install On Server Commands

The document provides instructions for installing Node.js and MongoDB on Ubuntu. For Node.js, it describes downloading a setup script, configuring it, and installing Node.js. For MongoDB, it outlines adding the MongoDB repository key, updating package lists, and installing and starting MongoDB. Both sections include links to more detailed installation guides.

Uploaded by

Muhamman Ahmad
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

Installing Node js

1- sudo apt update


2- curl -sL https://deb.nodesource.com/setup_16.x -o nodesource_setup.sh
3- nano nodesource_setup.sh
4- sudo bash nodesource_setup.sh
5- sudo apt install nodejs

https://www.digitalocean.com/community/tutorials/how-to-install-node-js-on-ubuntu-
18-04

Installing MongoDB

1- wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add


-
if ok go to 4 else 2
2- sudo apt-get install gnupg
3- wget -qO - https://www.mongodb.org/static/pgp/server-5.0.asc | sudo apt-key add
-
4- echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu
bionic/mongodb-org/5.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-
5.0.list
5- sudo apt-get update
6- sudo apt-get install -y mongodb-org
7- sudo systemctl start mongod

https://docs.mongodb.com/manual/tutorial/install-mongodb-on-ubuntu/

You might also like