Windows MongoDB 安装及配置
MongoDB 下载:https://www.mongodb.com/download-center#community
MongoDB 安装配置:
备注:记得加入环境变量,指定绝对路径,最好是以超级管理员运行cmd
1、进入mongodb 下的目录
E:\Tool\modb>
在目录下新建- db 目录
- log 目录
- 在log 目录下新建mongodb.log 文件
2、指定日志文件目录
E:\Tool\modb\bin>mongod --logpath "E:\Tool\modb\log\mongodb.log"指定数据存放目录
3、指定数据存放目录
E:\Tool\modb\bin>mongod --dbpath "E:\Tool\modb\db"2017-04-09T10:45:31.583+0800 I CONTROL [initandlisten] MongoDB starting : pid=12244 port=27017 dbpath=E:\Tool\modb\db 64-bit host=JSB015
2017-04-09T10:45:31.584+0800 I CONTROL [initandlisten] targetMinOS: Windows Vista/Windows Server 2008
2017-04-09T10:45:31.587+0800 I CONTROL [initandlisten] db version v3.4.3
2017-04-09T10:45:31.587+0800 I CONTROL [initandlisten] git version: f07437fb5a6cca07c10bafa78365456eb1d6d5e1
2017-04-09T10:45:31.588+0800 I CONTROL [initandlisten] allocator: tcmalloc
2017-04-09T10:45:31.589+0800 I CONTROL [initandlisten] modules: none
2017-04-09T10:45:31.590+0800 I CONTROL [initandlisten] build environment:
2017-04-09T10:45:31.590+0800 I CONTROL [initandlisten] distarch: x86_64
2017-04-09T10:45:31.591+0800 I CONTROL [initandlisten] target_arch: x86_64
2017-04-09T10:45:31.592+0800 I CONTROL [initandlisten] options: { storage: { dbPath: "E:\Tool\modb\db" } }
2017-04-09T10:45:31.600+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3518M,session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),checkpoint=(wait=60,log_size=2GB),statistics_log=(wait=0),
2017-04-09T10:45:31.630+0800 I CONTROL [initandlisten]
2017-04-09T10:45:31.630+0800 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-04-09T10:45:31.631+0800 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2017-04-09T10:45:31.632+0800 I CONTROL [initandlisten]
2017-04-09T10:45:32.047+0800 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory 'E:/Tool/modb/db/diagnostic.data'
2017-04-09T10:45:32.058+0800 I INDEX [initandlisten] build index on: admin.system.version properties: { v: 2, key: { version: 1 }, name: "incompatible_with_version_32", ns: "admin.system.version" }
2017-04-09T10:45:32.058+0800 I INDEX [initandlisten] building index using bulk method; build may temporarily use up to 500 megabytes of RAM
2017-04-09T10:45:32.061+0800 I INDEX [initandlisten] build index done. scanned 0 total records. 0 secs
2017-04-09T10:45:32.063+0800 I COMMAND [initandlisten] setting featureCompatibilityVersion to 3.4
2017-04-09T10:45:32.064+0800 I NETWORK [thread1] waiting for connections on port 27017
2017-04-09T10:47:24.020+0800 I CONTROL [thread2] Ctrl-C signal
2017-04-09T10:47:24.020+0800 I CONTROL [consoleTerminate] got CTRL_C_EVENT, will terminate after current cmd ends
2017-04-09T10:47:24.028+0800 I NETWORK [consoleTerminate] shutdown: going to close listening sockets...
2017-04-09T10:47:24.030+0800 I NETWORK [consoleTerminate] closing listening socket: 464
2017-04-09T10:47:24.032+0800 I NETWORK [consoleTerminate] shutdown: going to flush diaglog...
2017-04-09T10:47:24.034+0800 I FTDC [consoleTerminate] Shutting down full-time diagnostic data capture
2017-04-09T10:47:24.043+0800 I STORAGE [consoleTerminate] WiredTigerKVEngine shutting down
2017-04-09T10:47:24.164+0800 I STORAGE [consoleTerminate] shutdown: removing fs lock...
2017-04-09T10:47:24.165+0800 I CONTROL [consoleTerminate] now exiting
2017-04-09T10:47:24.171+0800 I CONTROL [consoleTerminate] shutting down with code:12
4、连接数据库E:\Tool\modb\bin>mongo
MongoDB shell version v3.4.3
connecting to: mongodb://127.0.0.1:27017
2017-04-09T10:47:38.944+0800 W NETWORK [thread1] Failed to connect to 127.0.0.1:27017 after 5000ms milliseconds, giving up.
2017-04-09T10:47:38.946+0800 E QUERY [thread1] Error: couldn't connect to server 127.0.0.1:27017, connection attempt failed :
connect@src/mongo/shell/mongo.js:237:13
@(connect):1:6
exception: connect failed
5、从新打开一个终端, 安装MongoDB服务
E:\Tool\modb>cd binE:\Tool\modb\bin>mongod --dbpath "E:\Tool\modb" --logpath "E:\Tool\modb\log\mongodb.log" --install --serviceName "MongoDB"
2017-04-09T11:01:31.833+0800 I CONTROL [main] log file "E:\Tool\modb\log\mongodb.log" exists; moved to "E:\Tool\modb\log\mongodb.log.2017-04-09T03-01-31".E:\Tool\modb\bin>net start MongoDB
MongoDB 服务正在启动 .
MongoDB 服务已经启动成功。E:\Tool\modb\bin>mongo
MongoDB shell version v3.4.3
connecting to: mongodb://127.0.0.1:27017
MongoDB server version: 3.4.3
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, seehttp://docs.mongodb.org/
Questions? Try the support grouphttp://groups.google.com/group/mongodb-user
Server has startup warnings:
2017-04-09T11:02:18.826+0800 I CONTROL [initandlisten]
2017-04-09T11:02:18.826+0800 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2017-04-09T11:02:18.826+0800 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2017-04-09T11:02:18.826+0800 I CONTROL [initandlisten]
>
连接上了———————
Windows MongoDB 安装及配置相关推荐
- Windows MongoDB安装配置
2019独角兽企业重金招聘Python工程师标准>>> 请使用新工具: NoSQL Manager for MongoDB,否则:MongoVUE连接报错(Invalid crede ...
- Windows Server2016 安装及配置DFS实现数据复制
Windows Server2016 安装及配置DFS实现数据复制 我们今天主要介绍的是Windows Server2016 安装及配置DFS实现数据复制,那什么是DFS呢?DFS就是Microsof ...
- 基于svnserve的SVN服务器(windows下安装与配置)
基于svnserve的SVN服务器(windows下安装与配置) 关键字: svn 安装SVNserve 从http://subversion.tigris.org/servlets/ProjectD ...
- CentOS 6.5系统使用yum方式安装LAMP环境和phpMyAdmin,mysql8.0.1/mysql5.7.22+centos7,windows mysql安装、配置...
介绍如何在CentOs6.2下面使用YUM配置安装LAMP环境,一些兄弟也很喜欢使用编译的安装方法,个人觉得如果不是对服务器做定制,用yum安装稳定简单,何必去download&make&am ...
- PHP 1:在Windows上安装和配置PHP,Apache和My SQL
PHP 1:在Windows上安装和配置PHP,Apache和My SQL 原文:PHP 1:在Windows上安装和配置PHP,Apache和My SQL 如果你Google一把类似的主题,你会发现 ...
- 怎样安装python在桌面_在Windows上安装和配置 Jupyter Lab 作为桌面级应用程序教程...
什么是 Jupyter Lab Jupyter Lab 是 Jupyter notebook 的升级版,优点这里不作赘述. 一.安装 Jupyter Lab 如果你安装了 Anaconda,最新版的 ...
- GTSAM在windows下安装,配置,简单调试
GTSAM在windows下安装,配置,简单调试 BOOST安装配置 GTSAM安装配置 安装 配置 GTSAM简单调试 代码分析1 代码分析2 模型分析和结果展示 BOOST安装配置 链接: boo ...
- 计算机管理服务中没有ANSYS,WIN7:ANSYS12.0时,出现:必须使用控制面板中的打开或关闭windows功能安装或配置...
ect to any license serber. The server is down or is not responsive. ANSYSLI_SERVERS:2325@jianpengli ...
- Redis在windows下安装与配置 (转)
Redis在windows下安装与配置 原文地址:https://www.cnblogs.com/lezhifang/p/7027903.html 一.安装Redis 1. Redis官网下载地址:h ...
最新文章
- php域名黑名单,thinkphp 6 IP 黑名单功能
- 数据库安装时挂起问题
- wsus问题之无法访问 WSUS 控制台
- 深度解读 MongoDB 4.4 新特性
- 手机qq2008触屏版_[进行中]数码手机周年庆
- Ubuntu 14.04下安装Redis报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- 处理大并发之四 libevent demo详细分析(对比epoll)
- git 分支的创建和切换
- Tunnelling HTTP Traffic Through XSS Channels.pdf
- web网页上面调用qq
- (C/C++) string / *char / int 基本轉換
- 软考《软件设计师教程》(第五版)
- 按键精灵post请求_手把手教你使用按键精灵post登陆网页
- CPU的DataSheet和UserManual的区别
- 对称密钥、非对称密钥、数字签名、数字证书
- 围棋人机大战一周年:被AlphaGo改变的世界
- POJ 2387 Dijkstra
- php 网络留言系统总结心的,留言板_感谢您的留言_代潇瑞博客-专注于PHP学习,PHP源码分享...
- ALLEGRO-DRC-错误代码
- 用python动态时钟代码_python实现简易动态时钟
热门文章
- 【2023校招刷题】第二期:数字IC笔试模拟题(2)详细解析版
- 怎么清理mysql的死链接_网站死链如何解决?其实很简单
- C语言:实现三重缓冲区(附完整源码)
- Nacos服务器1.4.1下载篇
- 微信查询天气公众账号小记
- 清默网络——CISCO ASA SSL ***详解
- Java监听mysql的binlog详解(mysql-binlog-connector)
- SVPWM控制技术+Matlab/Simulink仿真详解
- 一种灵活可靠的工作方式:组件化设计与开发
- 【python基础】python中常用字符串函数详解