1、官方文档的命令是

mongod --bind_ip 0.0.0.0 --logpath d:\mongo\logs --logappend --dbpath d:\mongo\data --directoryperdb --install

2、另外不要忘了还要在Windows 2008 R2的防火墙中打开27017和28017端口,在入站规则里加一条就行了。

相关文章:

  • 2021-08-04
  • 2022-12-23
  • 2021-07-17
  • 2021-07-18
  • 2022-12-23
  • 2021-12-19
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2022-02-24
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-26
  • 2021-06-19
  • 2021-06-30
相关资源
相似解决方案