• 欢迎访问搞代码网站,推荐使用最新版火狐浏览器和Chrome浏览器访问本网站!
  • 如果您觉得本站非常有看点,那么赶紧使用Ctrl+D 收藏搞代码吧

mongodb启动成功什么标志

mysql 搞java代码 3年前 (2022-05-18) 14次浏览 已收录 0个评论

启动mongodb数据库:

我本地是window10环境,我的mongodb服务安装在F盘的mongodb文件夹。我的数据目录在F的data文件夹。

启动doc命令,输入一下命令:

F:>mongodb/bin
F:mongodbin>mongod --path=/data/db
www#gaodaima.com来源gaodai^.ma#com搞#代!码网搞代码

启动成功输出以下信息:

2016-10-20T17:11:01.839+0800 I CONTROL  [initandlisten] MongoDB starting : pid=1504 port=27017 dbpath=/data/db 64-bit host=Haier-PC

2016-10-20T17:11:01.842+0800 I CONTROL  [initandlisten] targetMinOS: Windows 7/Windows Server 2008 R2

2016-10-20T17:11:01.844+0800 I CONTROL  [initandlisten] db version v3.0.12-47-gd57ef6a

2016-10-20T17:11:01.844+0800 I CONTROL  [initandlisten] git version: d57ef6a0c5a41729977f8d535a4c8de6d0cff8ba

2016-10-20T17:11:01.844+0800 I CONTROL  [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49

2016-10-20T17:11:01.844+0800 I CONTROL  [initandlisten] allocator: tcmalloc

2016-10-20T17:11:01.844+0800 I CONTROL  [initandlisten] options: { storage: { dbPath: "/data/db" } }

2016-10-20T17:11:01.860+0800 I JOURNAL  [initandlisten] journal dir=/data/dbjournal

2016-10-20T17:11:01.862+0800 I JOURNAL  [initandlisten] recover : no journal files present, no recovery needed

2016-10-20T17:11:01.971+0800 I JOURNAL  [durability] Durability thread started

2016-10-20T17:11:01.972+0800 I JOURNAL  [journal writer] Journal writer thread started

2016-10-20T17:11:02.186+0800 I INDEX    [initandlisten] allocating new ns file /data/dblocal.ns, filling with zeroes…

2016-10-20T17:11:02.553+0800 I STORAGE  [FileAllocator] allocating new datafile /data/dblocal.0, filling with zeroes…

2016-10-20T17:11:02.554+0800 I STORAGE  [FileAllocator] creating directory /data/db\_tmp

2016-10-20T17:11:02.600+0800 I STORAGE  [FileAllocator] done allocating datafile /data/dblocal.0, size: 64MB,  took 0.012 secs

2016-10-20T17:11:02.654+0800 I NETWORK  [initandlisten] waiting for connections on port 27017

最后一行显示"waiting for connections on port 27017",表明mongodb服务器已经启动,正在27017窗口等待连接。

更多mongodb相关文章请关注搞代码网。

来源:搞代码网:原文地址:https://www.gaodaima.com


搞代码网(gaodaima.com)提供的所有资源部分来自互联网,如果有侵犯您的版权或其他权益,请说明详细缘由并提供版权或权益证明然后发送到邮箱[email protected],我们会在看到邮件的第一时间内为您处理,或直接联系QQ:872152909。本网站采用BY-NC-SA协议进行授权
转载请注明原文链接:mongodb启动成功什么标志

喜欢 (0)
[搞代码]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址