Logo video2dn
  • Сохранить видео с ютуба
  • Категории
    • Музыка
    • Кино и Анимация
    • Автомобили
    • Животные
    • Спорт
    • Путешествия
    • Игры
    • Люди и Блоги
    • Юмор
    • Развлечения
    • Новости и Политика
    • Howto и Стиль
    • Diy своими руками
    • Образование
    • Наука и Технологии
    • Некоммерческие Организации
  • О сайте

Скачать или смотреть How to setup MongoDB Database in your AWS EC2 Instance |

  • Project DevOps
  • 2025-01-30
  • 429
How to setup MongoDB Database in your AWS EC2 Instance |
  • ok logo

Скачать How to setup MongoDB Database in your AWS EC2 Instance | бесплатно в качестве 4к (2к / 1080p)

У нас вы можете скачать бесплатно How to setup MongoDB Database in your AWS EC2 Instance | или посмотреть видео с ютуба в максимальном доступном качестве.

Для скачивания выберите вариант из формы ниже:

  • Информация по загрузке:

Cкачать музыку How to setup MongoDB Database in your AWS EC2 Instance | бесплатно в формате MP3:

Если иконки загрузки не отобразились, ПОЖАЛУЙСТА, НАЖМИТЕ ЗДЕСЬ или обновите страницу
Если у вас возникли трудности с загрузкой, пожалуйста, свяжитесь с нами по контактам, указанным в нижней части страницы.
Спасибо за использование сервиса video2dn.com

Описание к видео How to setup MongoDB Database in your AWS EC2 Instance |

Hello and welcome to the new video of How Tos series. In this video i have explained How to setup MongoDB Database in your AWS EC2 Instance.

I have uploaded the notes here at : https://github.com/projectdevops709/m...

Commands At : https://github.com/projectdevops709/m...

Commands Used for setup :
import the public key
sudo apt-get install gnupg curl

curl the gpg key for the mongoDB
curl -fsSL https://www.mongodb.org/static/pgp/se... | \
sudo gpg -o /usr/share/keyrings/mongodb-server-8.0.gpg \
--dearmor

create a list file for the mongoDB
echo "deb [ arch=amd64,arm64 signed-by=/usr/share/keyrings/mongodb-server-8.0.gpg ] https://repo.mongodb.org/apt/ubuntu noble/mongodb-org/8.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-8.0.list

reload the local package database
sudo apt-get update

install the stable version of the mongodb
sudo apt-get install -y mongodb-org

start the mongod service
sudo systemctl start mongod

if service not found, run the deamon once again
sudo systemctl daemon-reload

verify the mongodb started successfully
sudo systemctl status mongod

if you want mongodb to be re-start when the system is booted
sudo systemctl enable mongod

here you have installed the MongoDB database in your EC2 instance, now we will configure it for out database uses
please note that the below mentioned practice is not suggested for your production enviroment, you will have to use string authentication and RBAC techniquies for production environments.

in the same instance connect to the mongo-db shell
mongosh

switch to admin database
use admin

use the following command to add an admin user with your desired password
db.createUser({user: "admin", pwd: "admin", roles: [{ role: "root", db: "admin" }]})

you can also update your user by using below command
db.updateUser("admin", {pwd: "admin", roles: [{ role: "root", db: "admin" }]})

exit the mongodb shell
exit

now we will enable the mongodb authentication by adding some changes in the mongodb config file

open the mongodb config file
sudo nano /etc/mongod.conf

add the following code or replace with the previous added code, only change thes blocks, and leave the rest of the congiguration as it is.

security:
authorization: "enabled"

change the bindip from 127.0.0.1 to 0.0.0.0
net:
port: 27017
bindIp: 0.0.0.0 # Allow connections from any IP


save and exit the configuration
restart the mongodb servcice to perform the changes
sudo systemctl restart mongod

You can use mongoDB compass to get connected with your live mongodb database by using the below URI.
MONGO_URI=mongodb://admin:[email protected]:27017/?authSource=admin

I have been into the DevOps profile from last 4 years and i will be sharing my practical experience, please let me know whatever you want to suggest in comment section, as we all are humans, and I am expecting the same, hates & like as well. The content will be much clear, and I will try to keep it clean as much as I can, also I would like to express thanks to everyone who is watching my video.

#Docker #kubernetes #devops #gitops #argocd #python #linux #githubactions #jenkinstutorial #jenkinspipeline #howto #aws #cloudcomputing #mongodb | #mongodbtutorialforbeginners

Disclaimer - Logos used in the thumbnail and in the whole video content is used for tutorial and learning purposes, their commercial and ownership rights belong to their owners and creators.

Комментарии

Информация по комментариям в разработке

Похожие видео

  • О нас
  • Контакты
  • Отказ от ответственности - Disclaimer
  • Условия использования сайта - TOS
  • Политика конфиденциальности

video2dn Copyright © 2023 - 2025

Контакты для правообладателей [email protected]