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
How to fix MongoNetworkError error ECONNREFUSED in Mongodb Shell❓
📽ruclips.net/video/C0Dthf4wpqw/видео.html
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
this video solved my problem of mentioned error
Thank you for the comment
thanks
You are welcome
my mongod service is running but still i am having connect ECONNREFUSED 127.16.2.12:27017 this error
try restarting the mongod service by the following command:
sudo service mongod restart
thank you it worked like magic
Happy to hear🤗.Like this video so that it get recommended to more people 😀
I got an error after running the code in terminal. How to fix it?
What is the error you are getting? what is your Ubuntu version?
Brother how to download mongodb and compass please telling Ubuntu 24.04 version in please reply
@@hello_dorea_bhai Any video on youtube on this topic in the last two years will do
@@mjhacks6443 no sir not working please you can help
@@hello_dorea_bhai Are you getting any error when installing? youtube videos on installing in ubuntu 22.04 is also fine.
@@mjhacks6443 ok sir I can try thanks for information
sudo.dpkg -i mongodb-org-server_7.0.12_amd64.deb
bash: sudo.dpkg: command not found
Error hai
iled to start mongod.service: Unit mongod.service not found. how to solve this
Hi,
Can you specify you Ubuntu version?Did you fix it?
thank you
glad to know this video helped you😁
Where i put this comment??
@@crazyminion2351 You can put it here☝
How I get this commend prompt?@@mjhacks6443
still getting the same error
Try again. What is the output when you try the command in terminal?
@@mjhacks6443 there is no output
@@mjhacks6443 But when i think it is working and i type mongosh it gives the same error again
showing command not found in macOS can u plz see to it
Hi,
Type the following command in the terminal
"brew services start mongodb-community"
@@mjhacks6443 Home brew should be installed to run this command na??
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)
Failed to start mongod.service: Unit mongod.service not found.
Same
what is the command for windows?
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
@@mjhacks6443 Yes Brother, it Worked Very Well!!
Thanks for confirming that the command works
thank youu
Welcome😊
it works.
Glad to hear🤗
😍🥰😘
😊
thank you
Thanks for this comment bro.