AWS EC2 Instance Setup and Run MongoDB in EC2 | Install MongoDB in EC2 Server

Ғылым және технология

In this video we will learn amazon EC2 server setup from beginning. Also, install nosql mongo database in EC2 sever.
1. Creating aws linux EC2 instance from AWS management console.
2. Adding firewall rule in the security group to open mongodb port.
3. Login to EC2 instance from local terminal using secret key pair.
4. Download mongo database in EC2 instance.
5. Install Mongo database in EC2 instance.
6. Update mongodb configuration to accept connection from remote machines.
7. Create user in mongodb.
8. Connect mongo compass tool in local machine to mongodb in EC2 instance.
9. Insert data in mongo database using mongo compass.
** Introduction of AWS EC2 Instance **
Amazon Elastic Compute Cloud (Amazon EC2) provides scalable computing capacity in the Amazon Web Services (AWS) Cloud. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage. Amazon EC2 enables you to scale up or down to handle changes in requirements or spikes in popularity, reducing your need to forecast traffic.
** Benefits of AWS EC2 Instance **
AWS enables you to select the operating system, programming language, web application platform, database, and other services you need. With AWS, you receive a virtual environment that lets you load the software and services your application requires. Using Amazon EC2 eliminates your need to invest in hardware up front, so you can develop and deploy applications faster. You can use Amazon EC2 to launch as many or as few virtual servers as you need, configure security and networking, and manage storage.
** NoSQL MongoDB **
MongoDB is an open-source document database and leading NoSQL database. This video will give you complete understanding of running the MongoDB in docker container. Mongo Database - Database is a physical container for collections. Each database gets its own set of files on the file system. A single MongoDB server typically has multiple databases. Mongo DB Collection - Collection is a group of MongoDB documents. It is the equivalent of an RDBMS table. A collection exists within a single database. Collections do not enforce a schema. MongoDB Compass - MongoDB Compass is a powerful GUI for querying, aggregating, and analyzing your MongoDB data in a visual environment. Compass is free to use and can be run on macOS, Windows, and Linux.
** Chapter Timestamps **
0:00 Welcome to AWS EC2 sever setup
0:43 Agenda of the video
2:04 Explained AWS EC2 and MongoDB architecture
2:50 Create AWS EC2 server and configuration
5:24 Create security key pair for AWS EC2 instance
8:00 Connect AWS EC2 server from local terminal or putty ssh tool
10:19 Download and install mongo database in AWS EC2 server
10:26 Start mongodb server in EC2 server
11:57 Update mongodb config to allow remote connections
13:11 Create user in mongodb
13:56 Create firewall rule to open mongodb port in EC2 instance
15:47 Connect mongo compass tool to mongodb in EC2 server
16:37 Insert data in mongodb running in EC2 server
19:09 Summary of AWS EC2 server setup and MongoDB
#awsec2 #mongodb #awstutorial
** CHECK OUT OUR OTHER VIDEOS **
Amazon EC2 Instance Setup and Running Springboot Microservice in EC2: • Amazon EC2 Instance Se...
Spring boot project setup: • Spring boot Project St...
Spring Boot Microservice with postgres database Project: • Spring Boot Microservi...
Prepare Docker file, Container and Build Image: • Docker Tutorial for Be...
Deploy Docker Image AWS Elastic Container Service: • Deploy Springboot Micr...
Run MongoDB in Docker Container: • Run MongoDB Image in D...
** CHECK OUR PLAYLISTS **
Spring Boot Complete Tutorial • Spring Boot Tutorial w...
Cloud & Container Tutorial with AWS Cloud and Docker Containers • Cloud & Container Tuto...
Java Design Pattern Complete Tutorial • Java Design Patterns f...
** ABOUT OUR CHANNEL **
CodeOneDigest is a youtube channel that produces videos on programming languages, cloud and container technologies, Software design principles, Java frameworks in English and Hindi languages.
Check out our channel here:
/ @codeonedigest
Don’t forget to subscribe!
** OUR WEBSITE **
codeonedigest.wordpress.com/
** GET IN TOUCH **
Email us on codeonedigest@gmail.com
FOLLOW US ON SOCIAL - LIKE, SHARE & SUBSCRIBE
Get updates or reach out to Get updates on our Social Media Profiles!
Subscribe: bit.ly/3NeWQ8U
Twitter: / codeonedigest
Facebook: / codeonedigest
Instagram: / codeonedigest
Linkedin: / codeone-digest-10b418255
Github: github.com/codeonedigest
Website: codeonedigest.wordpress.com/

Пікірлер: 55

  • @codeonedigest
    @codeonedigest Жыл бұрын

    Hello friends, a new #video on #awsec2 #server setup #mongodb installation in #ec2 instance is published on #codeonedigest #youtube channel. Learn #aws #ec2 #mongodb #programming #coding with codeonedigest. #awsec2 #awsec2instance #awsec2interviewquestionsandanswers #awsec2instancecreation #awsec2deploymenttutorial #awsec2connect #awsec2statuschecks #awsec2project #awsec2full #awsec2createinstance #awsec2interviewquestionsandanswersforfreshers #awsec2instancedeployment #awsec2 #awsec2serialconsole #awsec2consolewindows #awsec2serverrefusedourkey #awsec2serialconsolepassword #awsec2serviceinterviewquestions #awsec2serialconsoleaccess #awsec2serialrefusedourkeyputty #awsec2serverconfiguration #awsec2serialconnect #awsec2 #awsec2instance #awsec2instancecreation #awsec2instanceconnect #awsec2instancedeployment #awsec2instancelinux #awsec2instancelaunch #awsec2instanceconnectnotworking #awsec2instanceinterviewquestions #awsec2instancecreationubuntu #awstutorial #awsec2tutorial #ec2tutorial #mongodbcompass #mongodbinstallation #monogodbtutorial #mongodbtutorialforbeginners #mongodbinaws #mongodbinec2 #awsec2mongodb #mongodbinstallationinaws #mongodbsetupinec2

  • @selim2590
    @selim25908 ай бұрын

    Clear and beginner friendly, thanks for providing such tutorial to the world!!

  • @codeonedigest

    @codeonedigest

    8 ай бұрын

    Happy to know that it is helpful. Do like share and subscribe our channel to grow codeonedigest family

  • @Felipe666123
    @Felipe66612311 ай бұрын

    Very useful, helped me a lot. Thank you!

  • @codeonedigest

    @codeonedigest

    11 ай бұрын

    Thanks for sharing feedback. Do like & share with your friends and colleagues

  • @jamesg.b.5330
    @jamesg.b.53305 ай бұрын

    Thank you so much, very helpfull for begginers

  • @codeonedigest

    @codeonedigest

    4 ай бұрын

    You're very welcome!

  • @motielmakies631
    @motielmakies6315 ай бұрын

    Thank you very much, really helped me.

  • @codeonedigest

    @codeonedigest

    4 ай бұрын

    Glad it helped!

  • @rahulgaba8153
    @rahulgaba8153 Жыл бұрын

    Very Useful Video sir.. Kindly make tutorial on Jenkins and Sonarqube..

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    sure Rahul thanks

  • @user-me8qn8of6j
    @user-me8qn8of6j3 ай бұрын

    thankyou so much very util this video.

  • @codeonedigest

    @codeonedigest

    3 ай бұрын

    Thanks for valuable feedback. Do like share and subscribe our channel to grow codeonedigest family

  • @floressalazardaynayazmin4763
    @floressalazardaynayazmin47637 күн бұрын

    alguna sugerencia para hacer en el servidor de windows?

  • @cristianmontes3933
    @cristianmontes39337 ай бұрын

    This is an amazing video. It is very well put together. I have a question, do you have a tutorial where you have your EC2 instance and your MongoDB in the same VPC? or does anyone know of an existing tutorial on how to do it?

  • @codeonedigest

    @codeonedigest

    7 ай бұрын

    you can do that easily!! just create a VPC and 2 subnets one for EC2 and one for mongo. If you have Devops team they can give you terraform script or you can search for terraform script and modify it accordingly

  • @cristianmontes3933

    @cristianmontes3933

    7 ай бұрын

    @@codeonedigest amazing! I unfortunately don’t have a DevOps team. I will have to do research! Thanks a lot!

  • @gsharma24
    @gsharma24 Жыл бұрын

    can you add another video on how to add mongo db in the VPC to connect with EC2 with IAM role.

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    yes will do that

  • @joilton5857
    @joilton5857 Жыл бұрын

    How did you get out of the appl folder? How did you install mongodb because in my informed that I need mongodb-org-shell?

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    You need to use the commands shown in video. Fire that command to go into shell

  • @AshishRohillax
    @AshishRohillax Жыл бұрын

    Sir if the instance is stopped or terminated we will loose the all data and mongodb too right ?

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    Yes Ashish, once the instance is terminated you would loose it. As the resources will go back to pool.

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    Hi Ashish, kindly subscribe to the channel if you are new to the channel and also do share it with all your friends and colleagues. Can you share this video with your friends on FB and Twitter?

  • @MadanMohanReddy-hp5mp
    @MadanMohanReddy-hp5mp Жыл бұрын

    hi sir at 11 min you are telling let me save this and writing :w! down but for me i am not getting that option what to do

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    Hi madan, thanks for reaching out to us with your query. If you notice i fired a sudo command at 10:38 that creates a file. That file opens in VI editor. I am copying instructions from notepad and pasting it in VI editor at 10:48. Here i am hoping you know linux and usage of VI editor. How to edit and save files in VI editor. After pasting the instructions in VI editor, you need to use ESC key to come out of insert mode and then you can save the file using :w! command Hope this solves your query?

  • @drchiragjain
    @drchiragjain Жыл бұрын

    i need authetification using aws iam for giving access to my team instyaed of pem or ppk file ...how do i do that ?

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    HI Chirag, if you wanna do via IAM so you have to assign IAM roles to every one in your team and they will be validated against their assigned role at API gateway. API gateway will interact with IAM to validate role and access.

  • @adeelirshad228
    @adeelirshad228 Жыл бұрын

    I tried but when i enter the string in compass it's reloading and reloading

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    check your firewall setting. if you are in office vpn then compass may not be able to connect to DB. Try from your personal laptop or disable VPN and firewall in your laptop

  • @achavan1205
    @achavan12054 ай бұрын

    Can you give me the notes steps that are shown in your notepad will you please share it?

  • @codeonedigest

    @codeonedigest

    4 ай бұрын

    Sure will share it soon

  • @rakesh8048
    @rakesh804810 ай бұрын

    I'm getting connect econnrefused sir please help

  • @codeonedigest

    @codeonedigest

    10 ай бұрын

    Can you provide more detail?

  • @keyurgondaliya6220
    @keyurgondaliya62209 ай бұрын

    I have done the same but due to some reason my ec2 local database is being clear automatically. I am using node server. Any idea why?

  • @codeonedigest

    @codeonedigest

    9 ай бұрын

    Which db are you using? Check for confirmation which clear the db. Data is getting deleted or whole db?

  • @keyurgondaliya6220

    @keyurgondaliya6220

    9 ай бұрын

    @@codeonedigest it's local mongodb in ec2 and whole database is being clear.

  • @codeonedigest

    @codeonedigest

    9 ай бұрын

    Just check setting, there are setting which flush the DB once application restart. Check for that configuration.@@keyurgondaliya6220

  • @keyurgondaliya6220

    @keyurgondaliya6220

    9 ай бұрын

    @@codeonedigest i check the mongo confjg file but there's not anything for flush db. Can you explain bit in detail like which settings 🤔.

  • @joilton5857
    @joilton5857 Жыл бұрын

    I'm trying to get into mongodb compass but is giving this error: connect ECONNREFUSED ip:27017

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    Hi check if you have opened the firewall for incoming request on port 27017. Create a firewall rule to open 27017 port for incoming requests. Also use credential in your URL if you have used any during installation setup. Are you in VPN or office network? if so try connecting directly instead of going through VPN.

  • @derekwilliams9671

    @derekwilliams9671

    6 ай бұрын

    how do i add the credentials like admin password?@@codeonedigest

  • @rahulpardeshi4427
    @rahulpardeshi4427 Жыл бұрын

    sir how to install in ubuntu?

  • @codeonedigest

    @codeonedigest

    Жыл бұрын

    Hi rahul Steps would be same but u may have to use commands of ubuntu for installation

  • @KrishnaK-ul4vh
    @KrishnaK-ul4vh4 ай бұрын

    I created AWS - EC2 instances and I Created Replication (3node replicaset). Now i don't know, how i can connect this to MongoDB Atlas.? please help me Sir..

  • @codeonedigest

    @codeonedigest

    4 ай бұрын

    Mongodb Atlas doesn't need your EC2 infra. Mongodb Atlas comes with its own infra. Mongodb atlas is cloud service by default so you can use it directly. U can setup your replication & backup configuration there.

  • @KrishnaK-ul4vh

    @KrishnaK-ul4vh

    4 ай бұрын

    @@codeonedigest Ok.. (Monitoring Purpose) If i want to Connect my cluster to the Monitoring Tool, how to do that & what kind of things i want to learn.?

  • @user-wx3xj3ig8l
    @user-wx3xj3ig8l6 ай бұрын

    Hi while installing it showing "(try to add '--skip-broken' to skip uninstallable packages)" what should i do ??

  • @codeonedigest

    @codeonedigest

    6 ай бұрын

    It seems you already installed mongo and and re-installing it. While reinstallation, it is trying to uninstall the previous mongo. Do you really want to remove the previous installation? check in google how to remove previous installation of mongodb

  • @engineerwaseem-mj1ge

    @engineerwaseem-mj1ge

    2 ай бұрын

    How did you resolve the error --skip-broken i am facing the same issue

  • @engineerwaseem-mj1ge
    @engineerwaseem-mj1ge2 ай бұрын

    Iam facing error --skip-broken and i am installing the mongod for the first time

  • @codeonedigest

    @codeonedigest

    Ай бұрын

    Can you share more info there?

  • @codeonedigest
    @codeonedigest11 ай бұрын

    kzread.info/dash/bejne/Y4hty5mdnty8qbA.html

Келесі