在macOS上安装MongoDBCatalina Homebrew,没有自制
我一整天都在处理这些问题。我需要你的帮助。我指的是
https://zellwk.com/blog/install-mongodb/
https://betterprogramming.pub/installing-mongodb-on-macos-catalina-aab1cbe0c836
1.自制
# Installs Homebrew
/usr/bin/ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
curl: (60) SSL certificate problem: self signed certificate in certificate chain
More details here: https://curl.haxx.se/docs/sslcerts.html
curl failed to verify the legitimacy of the server and therefore could not
establish a secure connection to it. To learn more about this situation and
how to fix it, please visit the web page mentioned above.
我该如何解决这个问题,我不知道如何更新SSL
2.在没有Homebrew的情况下从终端运行MongoDB macOS Catalina参考encehttps://blog.londonappbrewery.com/how-to-download-install-mongodb-on-mac-2895ccd2b5c1
-MongoDB设置
下载文件https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.4.6.tgz
在此存储"usr/local/mongodb">
在用户/用户名内创建.bash_profile(Vim导出路径=$PATH:/usr/local/mongodb/bin(
-为MongoDB创建本地数据存储位置
sudo mkdir -p /System/Volumes/Data/data/db
or
sudo chown (username) /System/Volumes/Data/data/db
sudo mongod --dbpath /System/Volumes/Data/data/db
然后运行
mongod
mongod: command not found
我不知道该怎么办了。。。请帮我
我能找到路。
curl:(60(SSL证书问题:证书链中的自签名证书更多详细信息请点击此处:https://curl.haxx.se/docs/sslcerts.html
/bin/bash -c "$(/usr/bin/curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
然后https://docs.mongodb.com/manual/tutorial/install-mongodb-on-os-x/https://zellwk.com/blog/install-mongodb/