在macOS Catalina Homebrew上安装MongoDB,而不使用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.在没有自制参考https://blog.londonappbrewery.com/how-to-download-install-mongodb-on-mac-2895ccd2b5c1的终端上运行MongoDB macOS Catalina
- MongoDB安装
下载文件https://fastdl.mongodb.org/osx/mongodb-macos-x86_64-4.4.6.tgz
商店在这里"/usr/local/mongodb“
用户/用户名内的Create.bash_profile (Vim导出路径=$PATH:/usr/local/mongodb/bin)
-Creating MongoDB的本地数据存储位置
sudo mkdir -p /System/Volumes/Data/data/db
or
sudo chown (username) /System/Volumes/Data/data/dbsudo mongod --dbpath /System/Volumes/Data/data/db那就跑
mongod
mongod: command not found我不知道该怎么办了.请帮帮我
发布于 2021-05-27 20:16:23
我能找到路。
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/
https://stackoverflow.com/questions/67559311
复制相似问题