解析命令行时出错:无法识别的选项'--rest'

时间:2021-08-29 04:04:21

I was trying to download mongoDB on my windows computer. I am very new to this.

我试图在我的Windows计算机上下载mongoDB。我对此很新。

C:\mongodb\bin>mongod --directoryperdb --dbpath C:\mongodb\data\db --logpath 
C:\mongodb\mongodb.log --logappend --rest --install 

But it was showing the error as on the title. I just started mongoDB and was trying to learn it through tutorials, but now I am stuck.

但它在标题上显示错误。我刚刚开始使用mongoDB并试图通过教程学习它,但现在我被卡住了。

1 个解决方案

#1


14  

The --rest parameter was removed in MongoDB 3.6 as described in this page: MongoDB Configuration Hardening and this ticket: SERVER-29000.

如本页所述,MongoDB 3.6中删除了--rest参数:MongoDB配置强化和此票证:SERVER-29000。

Remove the --rest option from your command line.

从命令行中删除--rest选项。

#1


14  

The --rest parameter was removed in MongoDB 3.6 as described in this page: MongoDB Configuration Hardening and this ticket: SERVER-29000.

如本页所述,MongoDB 3.6中删除了--rest参数:MongoDB配置强化和此票证:SERVER-29000。

Remove the --rest option from your command line.

从命令行中删除--rest选项。