mongodb 4 支持windows server 2012 吗
a) 首先下载三个补丁和MongoDB安装包:
KB2919445:Download Windows Server 2012 R2 更新程序 (KB2919442) from Official Microsoft Download Center KB2919335:Download Windows 8.1 Update for x64-based Systems (KB2919355) from Official Microsoft Download Center
VC++2015:Download Visual C++ Redistributable for Visual Studio 2015 from Official Microsoft Download Center
MongoDB安装包:链接: https://fastdl.mongodb.org/win32/mongodb-win32-x86_64-2008plus-ssl-4.0.0-signed.msi
严格按照以下顺序进行安装
先安装KB2919442:
再继续安装KB2919355,此文件安装时间较长,且安装完成后需要重启:
最后安装vc_redist:
b) 安装MongoDB:双击打开mongodb-win32-x86_64-2008plus-ssl-4.0.0-signed:
这里更改一下安装地址,改为c:\mongodb(此目录需手动建立):
这里也稍作更改:
安装完成后,到本机浏览器输入:链接: http://127.0.0.1:27017,进行验证,如出现以下画面,则说明安装成功:
在桌面新建一个文本文档:mongodb.txt,写入以下内容:
# mongod.conf # for documentation of all options, see: # http://docs.mongodb.org/manual/reference/configuration-options/ # Where and how to store data. storage: dbPath: C:\mongodb\data\db journal: enabled: true # engine: # mmapv1: # wiredTiger: # where to write logging data. systemLog: destination: file logAppend: true path: C:\mongodb\data\log\mongod.log # network interfaces net: port: 27017 bindIp: 0.0.0.0 #processManagement: #security: #operationProfiling: #replication: #sharding: ## Enterprise-Only Options: #auditLog: #snmp:保存,然后修改文件后缀为.cfg
复制该文件,到安装路径下的bin中(c:\mongodb\bin):替换目标中的文件、
完成后打开PowerShell使用以下命令来重新启动服务:
现在用内网的其他机器来测试一下是否能成功连接:(这里用的工具是Navicat):成功连接。
MongoDB安装+将MongoDB服务器作为Windows服务运行windows启动mongodb服务
windows server 2012免安装MongoDB windows安装mongodb教程
Windows Server2012R2 安装MongoDBmongodb windows安装
MongoDB 支持windows server 2012r2 版本
windows server 2012怎么安装mongodb mongodbmac安装
mongodb winserver2012r2 打开验证 mongodb windows
mongodb for windows server 2012下载 mongodb官网下载
mongodb 如何将RECOVERING 状态恢复为SECONDARY mongodb wt文件 恢复