Mongodb Mongod拒绝在macos上启动,给出了一条冗长而隐晦的错误消息
所以我尝试在macos上启动mongodb后台进程(用于个人项目)。我用这些步骤把它安装到我的电脑上。我正确地遵循了所有步骤,点击它并将其安装在自制软件包管理器上。所有内容都安装正确,但当我在终端中键入Mongodb Mongod拒绝在macos上启动,给出了一条冗长而隐晦的错误消息,mongodb,Mongodb,所以我尝试在macos上启动mongodb后台进程(用于个人项目)。我用这些步骤把它安装到我的电脑上。我正确地遵循了所有步骤,点击它并将其安装在自制软件包管理器上。所有内容都安装正确,但当我在终端中键入sudo mongod时,我在这里收到以下消息: {"t":{"$date":"2020-10-28T18:17:12.908-07:00"},"s":"I", "c&q
sudo mongod
时,我在这里收到以下消息:
{"t":{"$date":"2020-10-28T18:17:12.908-07:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2020-10-28T18:17:12.913-07:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
84931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2020-10-28T18:19:18.868-07:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2020-10-28T18:19:18.868-07:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
最后,这里有一条信息:
{"t":{"$date":"2020-10-28T18:17:12.908-07:00"},"s":"I", "c":"CONTROL", "id":23285, "ctx":"main","msg":"Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'"}
{"t":{"$date":"2020-10-28T18:17:12.913-07:00"},"s":"W", "c":"ASIO", "id":22601, "ctx":"main","msg":"No TransportLayer configured during NetworkInterface startup"}
84931, "ctx":"initandlisten","msg":"Dropping the scope cache for shutdown"}
{"t":{"$date":"2020-10-28T18:19:18.868-07:00"},"s":"I", "c":"CONTROL", "id":20565, "ctx":"initandlisten","msg":"Now exiting"}
{"t":{"$date":"2020-10-28T18:19:18.868-07:00"},"s":"I", "c":"CONTROL", "id":23138, "ctx":"initandlisten","msg":"Shutting down","attr":{"exitCode":100}}
我不想因为这篇文章中的整个错误消息而惹恼你们,所以我把错误放在了一个粘贴箱中:。我试着用sudo重新安装一切,登录或注销,在系统首选项中检查隐私。但是,我是mongo的新手,所以我不理解这些乱七八糟的废话。重要的是: 不存在路径:找不到数据目录/Data/db。使用(1)--dbpath命令行选项,或(2)在配置文件中添加“storage.dbpath”选项,创建缺少的目录或指定另一个路径
您发布的链接有以下步骤启动
mongod
: