草庐IT

mongodb - 默认情况下,32 位服务器没有启用日记功能。如果您想要持久性,请使用 --journal。 - 无法在 Windows 7 32 位上启动 mongo

coder 2023-05-04 原文

我无法在 Windows 32 位系统上启动 mongodb。我在 C: 驱动器中创建了\data\db。现在尝试运行 mongod 命令时,出现以下错误:

C:\Program Files\MongoDB\Server\3.2\bin>mongod.exe
2016-03-28T15:14:55.942+0530 I CONTROL  [main]
2016-03-28T15:14:55.942+0530 W CONTROL  [main] 32-bit servers don't have journaling enabled by default. Please use --journal if you want durability.
2016-03-28T15:14:55.942+0530 I CONTROL  [main]
2016-03-28T15:14:55.942+0530 I CONTROL  [main] Hotfix KB2731284 or later update is not installed, will zero-out data files
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] MongoDB starting : pid=6200 port=27017 dbpath=C:\data\db\ 32-bit host=PC265682
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] db version v3.2.4
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] git version: e2ee9ffcf9f5a94fad76802e28cc978718bb7a30
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] allocator: tcmalloc
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] modules: none
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] build environment:
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten]     distarch: i386
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten]     target_arch: i386
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] options: {}
2016-03-28T15:14:55.942+0530 I STORAGE  [initandlisten] exception in initAndListen: 28663 Cannot start server. The default storage engine 'wiredTiger' is not available with this build of mongod. Please specify a different storage engine explicitly, e.g. --storageEngine=mmapv1., terminating
2016-03-28T15:14:55.942+0530 I CONTROL  [initandlisten] dbexit:  rc: 100

C:\Program Files\MongoDB\Server\3.2\bin>

最佳答案

真正的错误是无法启动服务器。此版本的 mongod 不提供默认存储引擎“wiredTiger”。请明确指定不同的存储引擎,最简单的解决方案是按照示例进行。

例如mongod.exe --storageEngine=mmapv1

有关 MongoDB 存储引擎的更多信息,请参阅 https://docs.mongodb.org/manual/core/storage-engines/

关于mongodb - 默认情况下,32 位服务器没有启用日记功能。如果您想要持久性,请使用 --journal。 - 无法在 Windows 7 32 位上启动 mongo,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36259769/

有关mongodb - 默认情况下,32 位服务器没有启用日记功能。如果您想要持久性,请使用 --journal。 - 无法在 Windows 7 32 位上启动 mongo的更多相关文章

  1. ruby - 使用 ruby​​ 和 savon 的 SOAP 服务 - 2

    我正在尝试使用ruby​​和Savon来使用网络服务。测试服务为http://www.webservicex.net/WS/WSDetails.aspx?WSID=9&CATID=2require'rubygems'require'savon'client=Savon::Client.new"http://www.webservicex.net/stockquote.asmx?WSDL"client.get_quotedo|soap|soap.body={:symbol=>"AAPL"}end返回SOAP异常。检查soap信封,在我看来soap请求没有正确的命名空间。任何人都可以建议我

  2. ruby - 具有身份验证的私有(private) Ruby Gem 服务器 - 2

    我想安装一个带有一些身份验证的私有(private)Rubygem服务器。我希望能够使用公共(public)Ubuntu服务器托管内部gem。我读到了http://docs.rubygems.org/read/chapter/18.但是那个没有身份验证-如我所见。然后我读到了https://github.com/cwninja/geminabox.但是当我使用基本身份验证(他们在他们的Wiki中有)时,它会提示从我的服务器获取源。所以。如何制作带有身份验证的私有(private)Rubygem服务器?这是不可能的吗?谢谢。编辑:Geminabox问题。我尝试“捆绑”以安装新的gem..

  3. ruby - 难道Lua没有和Ruby的method_missing相媲美的东西吗? - 2

    我好像记得Lua有类似Ruby的method_missing的东西。还是我记错了? 最佳答案 表的metatable的__index和__newindex可以用于与Ruby的method_missing相同的效果。 关于ruby-难道Lua没有和Ruby的method_missing相媲美的东西吗?,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/7732154/

  4. ruby-on-rails - 如果为空或不验证数值,则使属性默认为 0 - 2

    我希望我的UserPrice模型的属性在它们为空或不验证数值时默认为0。这些属性是tax_rate、shipping_cost和price。classCreateUserPrices8,:scale=>2t.decimal:tax_rate,:precision=>8,:scale=>2t.decimal:shipping_cost,:precision=>8,:scale=>2endendend起初,我将所有3列的:default=>0放在表格中,但我不想要这样,因为它已经填充了字段,我想使用占位符。这是我的UserPrice模型:classUserPrice回答before_val

  5. ruby-on-rails - rails 目前在重启后没有安装 - 2

    我有一个奇怪的问题:我在rvm上安装了ruby​​onrails。一切正常,我可以创建项目。但是在我输入“railsnew”时重新启动后,我有“程序'rails'当前未安装。”。SystemUbuntu12.04ruby-v"1.9.3p194"gemlistactionmailer(3.2.5)actionpack(3.2.5)activemodel(3.2.5)activerecord(3.2.5)activeresource(3.2.5)activesupport(3.2.5)arel(3.0.2)builder(3.0.0)bundler(1.1.4)coffee-rails(

  6. ruby - 默认情况下使选项为 false - 2

    这是在Ruby中设置默认值的常用方法:classQuietByDefaultdefinitialize(opts={})@verbose=opts[:verbose]endend这是一个容易落入的陷阱:classVerboseNoMatterWhatdefinitialize(opts={})@verbose=opts[:verbose]||trueendend正确的做法是:classVerboseByDefaultdefinitialize(opts={})@verbose=opts.include?(:verbose)?opts[:verbose]:trueendend编写Verb

  7. ruby - 在没有 sass 引擎的情况下使用 sass 颜色函数 - 2

    我想在一个没有Sass引擎的类中使用Sass颜色函数。我已经在项目中使用了sassgem,所以我认为搭载会像以下一样简单:classRectangleincludeSass::Script::FunctionsdefcolorSass::Script::Color.new([0x82,0x39,0x06])enddefrender#hamlengineexecutedwithcontextofself#sothatwithintemlateicouldcall#%stop{offset:'0%',stop:{color:lighten(color)}}endend更新:参见上面的#re

  8. ruby-on-rails - 如果 Object::try 被发送到一个 nil 对象,为什么它会起作用? - 2

    如果您尝试在Ruby中的nil对象上调用方法,则会出现NoMethodError异常并显示消息:"undefinedmethod‘...’fornil:NilClass"然而,有一个tryRails中的方法,如果它被发送到一个nil对象,它只返回nil:require'rubygems'require'active_support/all'nil.try(:nonexisting_method)#noNoMethodErrorexceptionanymore那么try如何在内部工作以防止该异常? 最佳答案 像Ruby中的所有其他对象

  9. ruby-on-rails - 启动 Rails 服务器时 ImageMagick 的警告 - 2

    最近,当我启动我的Rails服务器时,我收到了一长串警告。虽然它不影响我的应用程序,但我想知道如何解决这些警告。我的估计是imagemagick以某种方式被调用了两次?当我在警告前后检查我的git日志时。我想知道如何解决这个问题。-bcrypt-ruby(3.1.2)-better_errors(1.0.1)+bcrypt(3.1.7)+bcrypt-ruby(3.1.5)-bcrypt(>=3.1.3)+better_errors(1.1.0)bcrypt和imagemagick有关系吗?/Users/rbchris/.rbenv/versions/2.0.0-p247/lib/ru

  10. ruby-on-rails - s3_direct_upload 在生产服务器中不工作 - 2

    在Rails4.0.2中,我使用s3_direct_upload和aws-sdkgems直接为s3存储桶上传文件。在开发环境中它工作正常,但在生产环境中它会抛出如下错误,ActionView::Template::Error(noimplicitconversionofnilintoString)在View中,create_cv_url,:id=>"s3_uploader",:key=>"cv_uploads/{unique_id}/${filename}",:key_starts_with=>"cv_uploads/",:callback_param=>"cv[direct_uplo

随机推荐