How to install mongodb 4.4 in Ubuntu 18.04

Published: 26 February 2022
on channel: Ambar Hasbiyatmoko
1,090
2

This video explains how to install mongodb version 4.4 in ubuntu 18.04.
Steps:
[install mongodb 4.4 in ubuntu 18.04]
curl -fsSL https://www.mongodb.org/static/pgp/se... | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu bionic/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 mongodb-org

sudo systemctl enable --now mongod
sudo mongo --eval 'db.runCommand({ connectionStatus: 1})'


[create user]
mongo
use admin
db.createUser(
{
user: "admin-mongo",
pwd: "4dmin-mon60",
roles: [ {role: "userAdminAnyDatabase", db: "admin"} ]
}
)

mongo -u admin-mongo -p --authenticationDatabase admin


Watch video How to install mongodb 4.4 in Ubuntu 18.04 online without registration, duration hours minute second in high quality. This video was added by user Ambar Hasbiyatmoko 26 February 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,09 once and liked it people.