Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

how to install mongoDB on ubuntu 22.04

Install MongoDB on Ubuntu
- Ensuring the server is up to date:
$ sudo apt update 
$ sudo apt upgrade -y 
$ sudo apt dist-upgrade -y 

- Install Required Packages:
$ sudo apt install gnupg 
$ echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
sudo apt update
sudo apt install libssl1.1

- Install MongoDB
$ wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
$ echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
$ sudo apt update 
$ sudo apt install -y mongodb-org 

Once installed, check the version of MongoDB:
$ mongod -version 

Once the service has been installed, start and enabling MongoDB Service:
$ sudo systemctl start mongod 
$ sudo systemctl status mongod 

Our MongoDB service is up and running, then enable it to start 
on boot using:
$ sudo systemctl enable mongod 
Comment

Installing mongodb over ubuntu 22.04

echo "deb http://security.ubuntu.com/ubuntu impish-security main" | sudo tee /etc/apt/sources.list.d/impish-security.list
sudo apt-get update
sudo apt-get install libssl1.1
Comment

install mongodb ubuntu 18.04

sudo apt updatesudo apt install mongodb-orgCopyCopied!
Comment

install mongodb ubuntu 18.04

sudo add-apt-repository 'deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.0 multiverse'Copy
Comment

install mongodb ubuntu 18.04

sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 9DA31620334BD75D9DCB49F368818C72E52529D4Copy
Comment

can we install mongodb in ubuntu 22.04

sudo apt install gnupg
Comment

Install mongodb on ubuntu 22.04 without problem

wget http://archive.ubuntu.com/ubuntu/pool/main/o/openssl/libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo dpkg -i ./libssl1.1_1.1.1f-1ubuntu2.16_amd64.deb
sudo apt update
sudo apt install mongodb-org
Comment

Install mongodb on ubuntu 22.04 without problem

echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
Comment

Install mongodb on ubuntu 22.04 without problem

curl -fsSL https://www.mongodb.org/static/pgp/server-6.0.asc|sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/mongodb-6.gpg
Comment

PREVIOUS NEXT
Code Example
Shell :: change master to main git 
Shell :: npm install react-final-form 
Shell :: vercel 
Shell :: git graph code 
Shell :: view git settings 
Shell :: install twilio laravel 
Shell :: how to install node js in ubuntu 
Shell :: find folder size in linux 
Shell :: reset git project 
Shell :: bash count number of arguments 
Shell :: a script that compiles a C file but does not link 
Shell :: run /bin/sh command in docker file 
Shell :: sqlmap get injection 
Shell :: certbot expand certificate 
Shell :: how to copy directory to a ssh server 
Shell :: set trustedinstaller as owner 
Shell :: ls line by line terminal 
Shell :: conda install netcdf4 
Shell :: react material-ui install error on react 18 
Shell :: linux list top cpu processes 
Shell :: Unit nginx.service is masked 
Shell :: linux remove all files same extension in directory 
Shell :: ssh no strict checking 
Shell :: linux temp file 
Shell :: jekyll run 
Shell :: remove space at end of each line file 
Shell :: linux search for a given string in all files recursively 
Shell :: no module named cv2 mac os 
Shell :: mac terminal hide username 
Shell :: how to install imagick 
ADD CONTENT
Topic
Content
Source link
Name
8+6 =