Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install mongodb ubuntu 20.04

wget -qO - 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-get update
sudo apt-get install -y mongodb-org
Comment

install mongo ubuntu 20.04

sudo systemctl status mongod
Comment

install mongo ubuntu 20.04

sudo systemctl enable mongod
Comment

how to install mongodb in ubuntu 20.04 lts fossa

sudo apt update
# Import the public key used by the package management system
# The operation should respond with an OK.
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
# Create a list file for MOngoDB
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list
# Reload localpackage database
sudo apt update
#Install MongoDB packages
sudo apt install -y mongodb-org
Comment

mongodb install ubuntu 20.04

FOR WSL2

wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
sudo apt-get install gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-4.2.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/mongodb-org/4.2 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-4.2.list

sudo apt-get update
sudo apt-get install -y mongodb-org

sudo nano /etc/init.d/mongod
paste this content in the file 'https://raw.githubusercontent.com/mongodb/mongo/master/debian/init.d'

#give permissions
sudo chmod +x /etc/init.d/mongod

#start the service
sudo service mongod start
Comment

install mongo ubuntu 20.04

sudo systemctl start mongod
Comment

install mongo ubuntu 20.04

sudo systemctl stop mongod
Comment

download mongodb ubuntu 20.04

wget -qO - https://www.mongodb.org/static/pgp/server-4.4.asc | sudo apt-key add -sudo add-apt-repository 'deb [arch=amd64] https://repo.mongodb.org/apt/ubuntu focal/mongodb-org/4.4 multiverse'CopyCopy
Comment

install mongo ubuntu 20.04

mongo
Comment

PREVIOUS NEXT
Code Example
Shell :: how to run different python version 
Shell :: how to uninstall all powershell modules 
Shell :: scp folder from server to local 
Shell :: docker basic commands 
Shell :: ext-dom missing ubuntu 
Shell :: pause bash script 
Shell :: bash remove first line 
Shell :: how to download using curl 
Shell :: pull or fetch changes 
Shell :: how to install zsh in fedora 
Shell :: git diff file names 
Shell :: mac ram size cli 
Shell :: how to check if command line tools is install 
Shell :: slugify npm 
Shell :: copy from remote to local 
Shell :: how to pull from original repository upstream 
Shell :: upgrade docker compose windows 
Shell :: cd into differernt drive 
Shell :: add local repository to remote 
Shell :: list users in ubuntu 
Shell :: delete all stopped docker containers 
Shell :: pip install google trans 
Shell :: git merge a file from another branch to current branch 
Shell :: linux how to open .x86_64 
Shell :: linux size of folder and subfolders 
Shell :: git clone only one branch 
Shell :: git add -p 
Shell :: yarn start error error listen EADDRINUSE: address already in use :::8081. 
Shell :: remove git remote 
Shell :: where is wsl folder in windows 
ADD CONTENT
Topic
Content
Source link
Name
4+6 =