【发布时间】:2021-05-16 16:52:29
【问题描述】:
在 macOS 上安装 MongoDB 卡特琳娜家酿, 没有自制软件
我整天都在处理这些问题。我需要你的帮助。
我指的是
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.运行 MongoDB macOS Catalina 从终端不使用 Homebrew 参考https://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 export PATH=$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证书问题:证书链中的自签名证书更多详情:curl.haxx.se/docs/sslcerts.html'
标签: node.js mongodb macos-catalina