how to fix mongodb error connect ECONNREFUSED 127.0.0.1:27017 in Mongodb compass in Ubuntu linux

Поделиться
HTML-код
  • Опубликовано: 22 авг 2024
  • how to fix mongodb error connect ECONNREFUSED 127.0.0.1:27017 in Ubuntu linux
    Troubleshooting MongoDB Connection Issues: Fixing ECONNREFUSED 127.0.0.1:27027 Error
    In this video, I will explain how to solve the mongodb error connect ECONNREFUSED 127.0.0.1:27017 in Mongodb compass. So, the error occur because the mongod service is not running after your started you pc/laptop. SO you need to start mongod service in your pc/laptop once again.
    So open your terminal and type the following command:
    sudo service mongod start
    Now that the error will be fixed, and you can continue using mongodb compass.
    #Mongodb #mongodbubuntu #mongodbcompass

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

  • @mjhacks6443
    @mjhacks6443  6 месяцев назад +1

    How to fix MongoNetworkError error ECONNREFUSED in Mongodb Shell❓
    📽ruclips.net/video/C0Dthf4wpqw/видео.html

  • @hello_dorea_bhai
    @hello_dorea_bhai Месяц назад +1

    sudo dpkg -i mongodb-org-server_7.0.12_arm64.deb
    (Reading database ... 60633 files and directories currently installed.)
    Preparing to unpack mongodb-org-server_7.0.12_arm64.deb ...
    Unpacking mongodb-org-server (7.0.12) over (7.0.12) ...
    Setting up mongodb-org-server (7.0.12) ...
    System has not been booted with systemd as init system (PID 1). Can't operate.
    Failed to connect to bus: Host is down
    Error hai sir

  • @safiullahxeon
    @safiullahxeon 4 месяца назад +1

    this video solved my problem of mentioned error

    • @mjhacks6443
      @mjhacks6443  4 месяца назад

      Thank you for the comment

  • @dotuD1221
    @dotuD1221 9 дней назад +1

    thanks

  • @kanchanpriya-yp4qe
    @kanchanpriya-yp4qe 7 месяцев назад +2

    my mongod service is running but still i am having connect ECONNREFUSED 127.16.2.12:27017 this error

    • @mjhacks6443
      @mjhacks6443  7 месяцев назад

      try restarting the mongod service by the following command:
      sudo service mongod restart

  • @user-Akwi
    @user-Akwi 5 месяцев назад +1

    thank you it worked like magic

    • @mjhacks6443
      @mjhacks6443  5 месяцев назад

      Happy to hear🤗.Like this video so that it get recommended to more people 😀

  • @Ravikumar-zv8dc
    @Ravikumar-zv8dc 6 месяцев назад +1

    I got an error after running the code in terminal. How to fix it?

    • @mjhacks6443
      @mjhacks6443  6 месяцев назад

      What is the error you are getting? what is your Ubuntu version?

  • @hello_dorea_bhai
    @hello_dorea_bhai Месяц назад +2

    Brother how to download mongodb and compass please telling Ubuntu 24.04 version in please reply

    • @mjhacks6443
      @mjhacks6443  Месяц назад

      @@hello_dorea_bhai Any video on youtube on this topic in the last two years will do

    • @hello_dorea_bhai
      @hello_dorea_bhai Месяц назад +2

      @@mjhacks6443 no sir not working please you can help

    • @mjhacks6443
      @mjhacks6443  Месяц назад +1

      @@hello_dorea_bhai Are you getting any error when installing? youtube videos on installing in ubuntu 22.04 is also fine.

    • @hello_dorea_bhai
      @hello_dorea_bhai Месяц назад +2

      @@mjhacks6443 ok sir I can try thanks for information

    • @hello_dorea_bhai
      @hello_dorea_bhai Месяц назад +1

      sudo.dpkg -i mongodb-org-server_7.0.12_amd64.deb
      bash: sudo.dpkg: command not found
      Error hai

  • @user-bd5uq9fg4g
    @user-bd5uq9fg4g 7 месяцев назад +1

    iled to start mongod.service: Unit mongod.service not found. how to solve this

    • @mjhacks6443
      @mjhacks6443  7 месяцев назад

      Hi,
      Can you specify you Ubuntu version?Did you fix it?

  • @parijatbhattacharya3681
    @parijatbhattacharya3681 2 месяца назад +1

    thank you

    • @mjhacks6443
      @mjhacks6443  2 месяца назад

      glad to know this video helped you😁

  • @crazyminion2351
    @crazyminion2351 2 дня назад +1

    Where i put this comment??

    • @mjhacks6443
      @mjhacks6443  2 дня назад

      @@crazyminion2351 You can put it here☝

    • @crazyminion2351
      @crazyminion2351 2 дня назад

      How I get this commend prompt?​@@mjhacks6443

  • @aadhyareddy1624
    @aadhyareddy1624 Месяц назад +1

    still getting the same error

    • @mjhacks6443
      @mjhacks6443  Месяц назад

      Try again. What is the output when you try the command in terminal?

    • @aadhyareddy1624
      @aadhyareddy1624 Месяц назад

      @@mjhacks6443 there is no output

    • @aadhyareddy1624
      @aadhyareddy1624 Месяц назад

      @@mjhacks6443 But when i think it is working and i type mongosh it gives the same error again

  • @vedantagarwal4486
    @vedantagarwal4486 7 месяцев назад +1

    showing command not found in macOS can u plz see to it

    • @mjhacks6443
      @mjhacks6443  7 месяцев назад +1

      Hi,
      Type the following command in the terminal
      "brew services start mongodb-community"

    • @vedantagarwal4486
      @vedantagarwal4486 7 месяцев назад +1

      @@mjhacks6443 Home brew should be installed to run this command na??

    • @mjhacks6443
      @mjhacks6443  7 месяцев назад

      I do not own a Mac. I found this command online. Please tell me how did you install mongodb compass.(share link of video or website url you followed)

  • @RanjanYadav-wr7gp
    @RanjanYadav-wr7gp 5 месяцев назад

    Failed to start mongod.service: Unit mongod.service not found.

  • @siddharthkanoujia957
    @siddharthkanoujia957 7 месяцев назад +1

    what is the command for windows?

    • @mjhacks6443
      @mjhacks6443  7 месяцев назад

      On Windows, follow the steps below:
      Press Windows button + R
      type "services" and press Enter,
      Scroll down and Find "MongoDb", right click on it and select "Start"
      Go back to MongoDBCompass, and try again to connect to localhost.
      Let me know if the issue was fixed

    • @TalhaSiddiqui-pv9sr
      @TalhaSiddiqui-pv9sr 7 месяцев назад +1

      @@mjhacks6443 Yes Brother, it Worked Very Well!!

    • @mjhacks6443
      @mjhacks6443  7 месяцев назад +1

      Thanks for confirming that the command works

  • @rishithp3077
    @rishithp3077 4 месяца назад +1

    thank youu

  • @safathossain9968
    @safathossain9968 6 месяцев назад +1

    it works.

  • @Breeath
    @Breeath 2 месяца назад +1

    😍🥰😘

  • @hasii36263
    @hasii36263 6 месяцев назад +1

    thank you

    • @mjhacks6443
      @mjhacks6443  6 месяцев назад

      Thanks for this comment bro.