• 转 mongodb win7 32位系统安装以及配置


    mongodb win7 32位系统安装以及配置

     

    今天安装 win7 32位系统 mongodb 费了好大劲。。记录一下,希望相同的同学可以少踩点坑。

    1.安装

    我安装的是3.2.4  地址:http://downloads.mongodb.org/win32/mongodb-win32-i386-3.2.4-signed.msi

    打开后安装。

    2.创建db目录

    在C盘根目录创建data文件夹,在data文件夹里再创建db文件夹用来存放数据。一定要记住在根目录!!

    3.配置环境变量

    我的目录是C:Program FilesMongoDBServer3.2in

    按照自己的目录来。

    4.命令行下运行 MongoDB 服务器

    打开命令行,输入

    mongod.exe --dbpath c:datadb

    执行,会输出如下信息:

    C:UsersAdministrator>mongod.exe --dbpath c:datadb
    2016-12-13T21:27:48.800+0800 I CONTROL [main]
    2016-12-13T21:27:48.802+0800 W CONTROL [main] 32-bit servers don't have journal
    ing enabled by default. Please use --journal if you want durability.
    2016-12-13T21:27:48.802+0800 I CONTROL [main]
    2016-12-13T21:27:48.812+0800 I CONTROL [main] Hotfix KB2731284 or later update
    is not installed, will zero-out data files
    2016-12-13T21:27:48.815+0800 I CONTROL [initandlisten] MongoDB starting : pid=8
    056 port=27017 dbpath=c:datadb 32-bit host=XTM-01612051619
    2016-12-13T21:27:48.815+0800 I CONTROL [initandlisten] targetMinOS: Windows Vis
    ta/Windows Server 2008
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] db version v3.2.4
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] git version: e2ee9ffcf9f
    5a94fad76802e28cc978718bb7a30
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] allocator: tcmalloc
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] modules: none
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] build environment:
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] distarch: i386
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] target_arch: i386
    2016-12-13T21:27:48.816+0800 I CONTROL [initandlisten] options: { storage: { db
    Path: "c:datadb" } }
    2016-12-13T21:27:48.819+0800 I - [initandlisten] Detected data files in c
    :datadb created by the 'mmapv1' storage engine, so setting the active storage
    engine to 'mmapv1'.
    2016-12-13T21:27:48.837+0800 I CONTROL [initandlisten]
    2016-12-13T21:27:48.837+0800 I CONTROL [initandlisten] ** WARNING: This 32-bit
    MongoDB binary is deprecated
    2016-12-13T21:27:48.838+0800 I CONTROL [initandlisten]
    2016-12-13T21:27:48.838+0800 I CONTROL [initandlisten]
    2016-12-13T21:27:48.839+0800 I CONTROL [initandlisten] ** NOTE: This is a 32 bi
    t MongoDB binary.
    2016-12-13T21:27:48.840+0800 I CONTROL [initandlisten] ** 32 bit builds a
    re limited to less than 2GB of data (or less with --journal).
    2016-12-13T21:27:48.841+0800 I CONTROL [initandlisten] ** Note that journ
    aling defaults to off for 32 bit and is currently off.
    2016-12-13T21:27:48.842+0800 I CONTROL [initandlisten] ** See http://doch
    ub.mongodb.org/core/32bit
    2016-12-13T21:27:48.843+0800 I CONTROL [initandlisten]
    2016-12-13T21:27:48.855+0800 I NETWORK [HostnameCanonicalizationWorker] Startin
    g hostname canonicalization worker
    2016-12-13T21:27:48.855+0800 I FTDC [initandlisten] Initializing full-time d
    iagnostic data capture with directory 'c:/data/db/diagnostic.data'
    2016-12-13T21:27:48.859+0800 I NETWORK [initandlisten] waiting for connections
    on port 27017

    5.如果有storageEngine报错  在后面加上--storageEngine=mmvpa1 参数

  • 相关阅读:
    4.父类私有属性和方法
    3.单继承和方法的重写
    2.Python封装练习及私有属性
    1.Python面向对象基础
    6.类与对象、封装、构造方法
    5.数组
    4.方法
    3.流程控制语句
    结构型模式和物理视图,模型管理试图的总结
    创建型模式和关于状态视图、活动视图、交互视图的总结
  • 原文地址:https://www.cnblogs.com/saryli/p/9964163.html
Copyright © 2020-2023  润新知