How to Setup MongoDB server in AWS

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024

Комментарии • 68

  • @ryanmahato
    @ryanmahato 4 года назад +3

    Your tutorial had really help me to get started.No one goes to an extend to create a video to help others. If you are exploring opportunity in Europe. We might have an opening suitable for you here within 3 months. :)

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      Thank you Ryan Magato for your comment. Can you please email me the details here atiqur.rahman@yandex.com

  • @sharrc
    @sharrc 3 года назад +11

    Love it, just a small tip: When recording, try speaking louder, so that later in editing you can tone down the volume, and thus remove a lot of background noise. Also, try audacity, etc for the noise removal too. Really appreciate the efforts though.

    • @AWSWithAtiq
      @AWSWithAtiq  3 года назад +1

      Thanks for your remark. I am trying to improve the voice quality

    • @benedicturiah7037
      @benedicturiah7037 3 года назад

      Pro trick: you can watch movies at flixzone. Been using them for watching lots of of movies recently.

    • @ulisesalexander2837
      @ulisesalexander2837 3 года назад

      @Benedict Uriah definitely, I have been watching on flixzone for since december myself =)

    • @nicochristopher8846
      @nicochristopher8846 3 года назад

      @Benedict Uriah yup, been using Flixzone for since december myself :)

  • @jakobamann9592
    @jakobamann9592 3 года назад +1

    Really great tutorial. You saved my day!

  • @ikkirodriguez2198
    @ikkirodriguez2198 2 года назад

    thanks , i have problem to connect for a external MongoDb Compas and you tutorial help me so much

  • @stefanpgr
    @stefanpgr 4 года назад +1

    Thanks alot, this video really helped me

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      Glad it helped

    • @shakuldubey1873
      @shakuldubey1873 4 года назад +1

      Did it really worked, i don't see it working for me.

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      @@shakuldubey1873 what error you are receiving?

  • @KyleSweigart
    @KyleSweigart 4 года назад +1

    Thanks, Atiqur!

  • @victorialeigh2726
    @victorialeigh2726 2 года назад

    Geeeeniuuuus!! Thanks a bunch!

  • @contavolta64
    @contavolta64 4 года назад +2

    After the "sudo yum install -y mongodb-org" command, I got this "No package mongodb-org available.
    Error: Nothing to do"
    I had installed it before on t2.micro instance. I'm currently trying on a1.4xlarge instance.
    Could it be because of that?

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      Please check the description of the video. I added all the commands over there.

    • @shakuldubey1873
      @shakuldubey1873 4 года назад

      Getting same error. Looks like this is outdated now

  • @aejazawte9502
    @aejazawte9502 10 месяцев назад

    assalam walaikum brother i need your help, i want to connect to our aws ec2 instance mongodb server from nosql booster, how to do it?

  • @qwerty1234835
    @qwerty1234835 4 года назад +3

    My MongoDB was attached by a ransomware which then asked for 0.015 btn to get data back. I think you need to add a snippet saying, please add security!

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад +2

      good point. I will add a new video on server security.

    • @qwerty1234835
      @qwerty1234835 4 года назад +1

      Also put a link in this video’s description! Saying they should definitely see the video and add basic user authentication as soon as they host mongo!

    • @qwerty1234835
      @qwerty1234835 4 года назад +1

      Oh and thank you :)

    • @usmanaqil1765
      @usmanaqil1765 4 года назад

      How do I add security?

    • @usmanaqil1765
      @usmanaqil1765 4 года назад

      @@AWSWithAtiq bhai security video 😢?

  • @shwetagaud2931
    @shwetagaud2931 2 года назад

    Hi
    I am getting this error when try to start mongodb "Redirecting to /bin/systemctl start mongod.service"
    help....

    • @AWSWithAtiq
      @AWSWithAtiq  2 года назад

      It looks like you are using Amazon Linux 2. Please check my other video for mongodb on Amazon Linux 2

  • @elgrancid
    @elgrancid 3 года назад

    Have you done one where you create a cluster, on AWS, or how to connect your MongoDB Atlas cluster to your AWS instances? That could be a great next step.

    • @AWSWithAtiq
      @AWSWithAtiq  3 года назад +1

      I will create one video soon on MongoDB cluster connection from EC2 instance

    • @heyitsak32
      @heyitsak32 Год назад

      @@AWSWithAtiq hey can you help with this please. I have a client who wants to migrate data to aws from mongodb atlas cluster to aws instance. Please tell me how i can do it

  • @anilbabu9295
    @anilbabu9295 4 года назад +1

    Hi sir
    How we take the backup and restore the tables from the mongodb?

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      I will create a separate video on this. Thanks for your comment

  • @shiviaggarwal3949
    @shiviaggarwal3949 3 года назад

    when I install the mongodb this error is coming :Cannot find a valid baseurl for repo: mongodb-org-4.2

    • @AWSWithAtiq
      @AWSWithAtiq  3 года назад

      please check this article here awswithatiq.com/how-to-install-mongodb-on-amazon-linux-2/

  • @budiawaniwan3642
    @budiawaniwan3642 2 года назад

    Thank you sir you so help me. But where i can get my endpoint to connect to my Robo 3T in my pc ? and how to settings password and outh in my mongodb ?

    • @AWSWithAtiq
      @AWSWithAtiq  2 года назад

      This is an example of setting the mongodb and access locally. You can setup mongoexpress in the server and use that as an administrative tool

  • @qwerty1234835
    @qwerty1234835 4 года назад +1

    I am unable to edit the /etc/mongod.conf what do I do?

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      Use sudo command for editing

    • @anshumansingh7802
      @anshumansingh7802 4 года назад

      Sudo -s to go to root and then type vi /etc/mongod.conf Press i to go into insert mode. Save by pressing esc button followed by :wq command.

  • @neohhueyli
    @neohhueyli 4 года назад +1

    How can I migrate on premise MongoDB to Amazon EC2?

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад +1

      You can export data using mongoexport docs.mongodb.com/manual/reference/program/mongoexport/ and then import into ec2 via mongoimport

  • @LucasSilva-yi5vh
    @LucasSilva-yi5vh 3 года назад

    Thx

  • @anilbabu9295
    @anilbabu9295 4 года назад +1

    How to take mongodb backups to S3 and restore

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      I will create a separate video on this. Thanks for your comment

    • @pthithic
      @pthithic 2 года назад

      @@AWSWithAtiq I don't see a video where you backup mongo to S3 in your list of videos

  • @ramakrishna469
    @ramakrishna469 3 года назад

    This is so helpful.
    I'm trying to connect with Java, but getting this error.
    Exception executing isMaster command on /127.0.0.1:27017/3-138-141-141

    • @AWSWithAtiq
      @AWSWithAtiq  3 года назад +1

      Edit the config file: /etc/mongod.conf and do this changes:
      #port = 27017 -> port = 27017
      bind_ip = 127.0.0.1 -> #bind_ip = 127.0.0.1

  • @emiliansuchecki6513
    @emiliansuchecki6513 3 года назад

    Hi, thank you for your time.
    But I have a little problem, after edit /etc/mongod.conf I tried to restart mongodb and I got:
    Starting mongod (via systemctl): Job for mongod.service failed because the control process exited with error code. See "systemctl status mongod.service" and "journalctl -xe" for details
    After putting "systemctl status mongod.service" I got:
    ● mongod.service - SYSV: Mongo is a scalable, document-oriented database.
    Loaded: loaded (/etc/rc.d/init.d/mongod; bad; vendor preset: disabled)
    Active: failed (Result: exit-code) since Fri 2021-01-22 12:36:22 UTC; 1h 16min ago
    Docs: man:systemd-sysv-generator(8)
    Process: 595 ExecStop=/etc/rc.d/init.d/mongod stop (code=exited, status=0/SUCCESS)
    Process: 767 ExecStart=/etc/rc.d/init.d/mongod start (code=exited, status=1/FAILURE)
    Jan 22 12:36:22 ip-172-31-35-145.eu-central-1.compute.internal systemd[1]: Starting SYSV: Mongo is a scalable, document-oriented database....
    Jan 22 12:36:22 ip-172-31-35-145.eu-central-1.compute.internal mongod[767]: Error starting mongod. /var/run/mongodb/mongod.pid exists.
    Jan 22 12:36:22 ip-172-31-35-145.eu-central-1.compute.internal systemd[1]: mongod.service: control process exited, code=exited status=1
    Jan 22 12:36:22 ip-172-31-35-145.eu-central-1.compute.internal systemd[1]: Failed to start SYSV: Mongo is a scalable, document-oriented database..
    Jan 22 12:36:22 ip-172-31-35-145.eu-central-1.compute.internal systemd[1]: Unit mongod.service entered failed state.
    Jan 22 12:36:22 ip-172-31-35-145.eu-central-1.compute.internal systemd[1]: mongod.service failed.

  • @nithunkannan
    @nithunkannan 4 года назад

    Is there way we can connect MongoDB with ECS

    • @AWSWithAtiq
      @AWSWithAtiq  4 года назад

      Yes, you can connect MongoDB with ECS. I will create a separate video on this.

    • @nithunkannan
      @nithunkannan 4 года назад

      @@AWSWithAtiq I am using ECS with fargate which is a serverless technology. Will it be possible to install MongoDB then

  • @jivanmainali1742
    @jivanmainali1742 3 года назад

    bro is this mongodb accessible to other ec2

    • @AWSWithAtiq
      @AWSWithAtiq  3 года назад

      yes, if it's on same vpc

    • @jivanmainali1742
      @jivanmainali1742 3 года назад

      @@AWSWithAtiq but will it be horizontal scalable ?

  • @vaaruniagarwal7832
    @vaaruniagarwal7832 3 года назад

    Horrible

    • @AWSWithAtiq
      @AWSWithAtiq  3 года назад

      sorry didn't understand you?

    • @vaaruniagarwal7832
      @vaaruniagarwal7832 3 года назад

      @@AWSWithAtiq It means the video is horrible. Because the audio is not clear. If you need any more explanation on the word 'Horrible' refer to a dictionary.
      If you need to know what is a dictionary then use Google. I hope you know that

    • @pthithic
      @pthithic 2 года назад

      I thought it was fine

  • @anaghakulkarni6457
    @anaghakulkarni6457 Год назад

    facing this issue
    - nothing provides libssl.so.10()(64bit) needed by mongodb-org-shell-4.2.9-1.amzn1.x86_64
    (try to add '--skip-broken' to skip uninstallable packages)

    • @AWSWithAtiq
      @AWSWithAtiq  Год назад

      Follow the video completely

    • @anaghakulkarni6457
      @anaghakulkarni6457 Год назад

      @@AWSWithAtiq I did that. After completion it's giving such error