How to install Mongodb 5 | latest MAC installation
HTML-код
- Опубликовано: 31 июл 2024
- Welcome to a youtube channel dedicated to programming and coding related tutorials. We talk about tech, write code, discuss about cloud and devops. That’s what we do all day, all year. We roll out a lot of series and videos on our channel.
All the learning resources such as code files, documentations, articles and community discussions are available on our website:
chaicode.com/
You can find our discord link, github link etc on the above website.
Twitter/X link: x.com/hiteshdotcom
Discord link: hitesh.ai/discord
Learn React with 10 projects: • Let's learn react from...
Learn Docker: • A practical guide on D...
Learn Kubernetes: • Complete Kubernetes Co...
How does a browser works: • How does a browser wor...
How nodejs works: • How node JS works | En...
Learn Redux-toolkit: • Learn Redux Toolkit in...
Learn NextJS: • Nextjs Full stack course
Learn Typescript: • Why to learn Typescript
Learn Javascript: • Welcome to new JavaScr...
Learn React Native: • React Native Mastery: ...
Learn Zustand: • React state management...
Learn Golang: • How to get started wit... Наука
After brew installation, here are commands:
xcode-select --install
brew tap mongodb/brew
brew install mongodb-community@5.0
brew services start mongodb-community@5.0
brew services stop mongodb-community@5.0
mongod --config /opt/homebrew/etc/mongod.conf --fork
mongosh
MongoDB compass
This is interesting, in that there is something programming related that's actually EASIER to install on Windows than Mac!
i don't have the "/opt/homebrew/etc/mongod.conf" file...
during the installation i saw this:
"/usr/local/etc/mongod.conf" so i used that path.. but the result is:
ERROR: child process failed, exited with 1
EDIT: i had to use "sudo"... howevere the last version (6.0.x) seems to be different someway... so installed the 5.0 as in the video, and i also had to export this to PATH with:
export PATH="$PATH:/usr/local/Cellar/mongodb-community@5.0/5.0.11/bin"
Without this, "mongod" command was an uknown command
When installing Homebrew I got error: git ...[file..]
Sir ,
Enterted in termial : mongod --config /opt/homebrew/etc/mongod.conf --fork
showing an error : Error opening config file '/opt/homebrew/etc/mongod.conf': No such file or directory
This was super helpful, I was getting really frustrated trying to install mongodb, and this walked me right through the steps I needed
Thanks so much for the help, I've been struggling with the whole MongoDB installation thing, after watching your video, everything is fixed. Subscribed!
Best Video! I was struggling so bad! Thanks a ton Hitesh!
This was a saviour. Thanks Hitesh for this video
THanks a million! this is what i needed from past 2 hours
Man, your video save me from hours looking for a answer, thank you very much for your very helpull explanation!
Happy to help
very clear and comprehensive explanation
Wow! Very Clear explanation
Thank you Hitesh Choudhary !!!
Thanks Really struggled installing it to start learning MongoDB
Thanks Hitesh. It was realy helpful
at last it is saying "mongod command not found after typing this code , "mongod --config ................" etc etc
PLEASE HELP
Really it's a good video, Loved the tutorial :P
Thanks for putting effort in your craft
Not sure if I'm supposed to create a file or directory I got the following error message
Error opening config file '/opt/homebrew/etc/mongod.conf': No such file or directory
when I entered the following command mongod --config /opt/homebrew/etc/mongod.conf --fork
Thanks friend, it helped me a lot, prosperity to your channel and more subscribers!
Liked it =)
All the best!
hello i am trying to do it but after ls -la , its not showing .zshrc anywhere ...what to do now
Always latest and updated 👌
after starting mongodb community the background process command is not working in mac m1, it says zsh: command not found: mongod ,
can you please tell me what is the problem with this and how can i resolve i had this issue from the last 4 5 days but unable to resolve please help me out.
when I type xcode-select --install or xcode-select ... it says that xcode-select is not a command, but I have command line tools installed in the right place, I even reinstalled it. Any thoughts?
In the tools tier list, Brew should definitely come in God Tier.
BTW have you watched that Programming Language tier list Video by Clement? It's hilarious!!
thank you, the video has helped me
not to be dramatic but i almost had a mental break down trying to get this sh*t, thank you so much
can you please help me with this issue mongod --config /opt/homebrew/etc/mongod.conf --fork
about to fork child process, waiting until server is ready for connections.
forked process: 10477
ERROR: child process failed, exited with 1
To see additional information in this output, start without the "--fork" option.
Thank you very helpful
Hi Hitesh,
Awesome video, you just save me countless hours here try to get this mongodb server install. Everything works as the video said, but when I run this command,
mongod --config /opt/homebrew/etc/mongod.conf --fork
I got an error message as follow :
zsh: command not found: mongod
Could you please advice on why I got this error message ?
Thanks
Finally after 2-3 days successfully installed it
Quick tip if you are using intel processor then use this for config - mongod --config /usr/local/etc/mongod.conf
about to fork child process, waiting until server is ready for connections.
forked process: 9076
ERROR: child process failed, exited with 48
To see additional information in this output, start without the "--fork" option.
Whats the difference between mongod and this method?
mongod --config /opt/homebrew/etc/mongod.conf --fork
The above command generates an error...
Error opening config file: Is a directory
try 'mongod --help' for more information
What should i Do?
There is an error called - No available formula with the name "mongodb-community@5.0" in the mac
mongod --config /opt/homebrew/etc/mongod.conf --fork ,,, after this command its saying zsh: command not found: mongod can anyone help? what to do other process is done similarly as in video
Thanks bhaiya for this. Was trying to install this from last 1 hour. Love from hindi channel chaiaurcode
Welcome 👍
❤️ thanks sir
what is the xcode tools for? is it necessary?
i can not find a file with the .zshrc
Is MongoDB native M1 version or it runs on rosetta?
thank you so much sir
I don't have zshrc in my hidden files what can I do?
in my directory after installing the command from brew, .zshrc (folder not there) other two forlder of zsh are there
what should i do now?
kya krein bhai mera bhi same sawaal hai
Thanks hundreds of ton
Thank You!
Hello Sir, it's showing zsh command not found. How to get rid of this? Plz help sir.
Thanks but why "mongo --version" command doesnt work? It says zsh: command not found: mongo
Use "mongod --version"
i was unable connect mongodb with nodejs .But the mongodb is working properly .
when i have used mongod --config /opt/homebrew/etc/mongod.conf --fork it is showing like mogod not found
Hi Hitesh sir, sorry for asking a question unrelated to the video but I am not able to watch the lco content on my Google Chrome in linux recently. The error message mentions that it is accessible on Chrome OS, windows or Mac. But the majority of developers use Linux as their go to OS. So it is getting very hard to watch the content on the laptop.
I had raised a support query for this on lco support page as well but never received any reply from the team.
Could you please allow the videos to be watched on linux as well?
You need to install DRM packages for your linux distro. and update, that's it. Or you can use widewine or similar package
@@HiteshChoudharydotcom thank u sir for such an instant response 🙏🫡. Will try that out.
% mongod --config /opt/homebrew/etc/mongod.conf --forK
zsh: command not found: mongod
WHAT TO DO ??
kuch pta chala bhai iska?
1) run
echo 'export PATH="/opt/homebrew/opt/mongodb-community@5.0/bin:$PATH"'
2)run
source ~/.zshrc
3) run/check
"mongo --version"
for intel chip user the path and command will be mongod --config /usr/local/etc/mongod.conf --fork.
thank you man
Thank You sir
Sir I am having error that says child process failed and exited with error no 48... Do you have any solution for this? Please answer
first stop the mongodb services as Hitesh did before fork command
I am not getting the .zshrc file
i Like it bro
i am not getting the path i am getting :wq at that place
at 2:41 time
I have Anaconda 3 set up already. Does that change anything for me as far as the path reassignment goes?
same issue, even deleted Anaconda but the content of the file didn't change
where to check mongo db logs
8:00 its showing mongod command not found
sir plz tell us how to install Cassandra Database on MAC
please help .... i do not have that .zshrc file after installing home brew
I have same problem. Were u able to figure this out?
Can you make a video on installation of VM's on m1.
How install jdk in mac air
Brew is installed but Can not find .zshrc file on mac !! Can u help?
Did u find .zshrc file
Same issue. Can somebody help with this? Error says : no such file or directory
Make sure u r looking In Correct directory.
Use `cat ~/.zshrc`
Also verify which shell u r working on using `echo $0`
When i'm typing cat .zshrc, i'm getting bash fg: %: no such job, can someone help
Yes same here
Plz complete series on mongo
Thanks
mongod --config /opt/homebrew/etc/mongod.conf --fork is not working for me ... its showing command not found : mongod
Thanks for the video. requesting to continue this by mentioning the data location and log location.
For Macbook M1
Data Directory /opt/homebrew/var/mongodb
Configuration file /opt/homebrew/etc/mongod.conf
Log directory /opt/homebrew/var/log/mongodb
Now question is, how to uninstall it?
Sir, There's not any .zhrc file in my Mac. Can you please help me out?
.zshrc file*
But there are .zsh_history & .zsh_session
@@daanyal-rahila-memon Same issue with my mac. M1 Mac Pro
@@daanyal-rahila-memon just follow the steps its gonna be ok
Helpful
mongod command not found
Hello sir I have enrolled in your job guarantee js program. I am a college student thinking of buying a M1. Can I run all software for web Dev and machine learning on m1.
Absolutely
thanks❤
I would like to add this process give you a clear process to install MongoDB only in MacOs with the new M1 chips.
I had some troubles installing it because there is not longer bash. If you are using bash, you need to change the Path (Can consult with echo $PATH in your Terminal) after that you must edit your files in .zshrc
Can you please elaborate? I am using Mac with M1 chip and when I'm opening .zshrc it contains data like this:
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/luckykritya/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/luckykritya/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/luckykritya/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/luckykritya/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
#
Tks!!
why i can't find .zshrc file on my laptop?
same problem for me :(
I'm also not able to find it on my laptop
command + shift + .
You can create your own
zsh: command not found: mongod
It is much easier to install MongoDB using docker for local development. But there are downsides of course.....
Yeey, a video that explains everything and I should not read the documentation. 🤣
Hmm MacBook pro m1 struggling to stream 4k, intresting 😀
Use docker instead :)
ERROR: child process failed, exited with 14
I need help
have you got solution?
Hi Hitesh sir, Please can you make the same video for Windows? without loosing any data on mongodb.
Need to buy a windows system for that 😁
@@HiteshChoudharydotcom No sir, I will google 😅
Don't know why I purchase macbook air. Should have sticked with old windows and none of the issues i've run into trying to get this mongdb working would have happened. Really frustrating trying to get this to work. Think I'm giving up. Don't have the time for this crap.
it says ERROR: child process failed, exited with 48
@@vaibhavverma480 have you got solution?
any solution yet bro?
@@satyamsingh3 hey bro, got any solution yet?
Bhai JavaScript wala to continue karo
Looks like you don’t listen, just put comment 🙂
postgress
redis
mysql
Dbeaver is the best
mongo compass
mongodb compash
you are a monGOD
Is this ur default accent or r u just trying to be cool
MongoDB Compass
mongod --config /opt/homebrew/etc/mongod.conf --fork
Error opening config file '/opt/homebrew/etc/mongod.conf': No such file or directory
try 'mongod --help' for more information
I am getting this err, please help me out someone
make sure to run this command -> brew link mongodb-community@5.0
if you have zsh command not found : mongo
make
vim .zshrc and add
export PATH=/usr/local/opt/mongodb-community@5.0/bin:$PATH
for intel
or for M1
/opt/homebrew/Cellar/mongodb-community@5.0/5.4.13/bin/mongo (or someting like this iam not sure )
and run
source ~/.zshrc for reload the terminal
mine consists the path to anaconda but still brew is working fine. Just curious
cat .zshrc :
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/tanush/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/tanush/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/tanush/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/tanush/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
#
When I'm opening the .zshrc that file doesn't contain any path instead it contains this:
# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/luckykritya/opt/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/luckykritya/opt/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/luckykritya/opt/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/luckykritya/opt/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
#
hey, i am getting the same error
how u worked on it?? pls help
please give your email i have some queries.