温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

mongodb启动成功的标志是什么

发布时间:2020-07-07 16:49:07 来源:亿速云 阅读:296 作者:清晨 栏目:编程语言

这篇文章将为大家详细讲解有关mongodb启动成功的标志是什么,小编觉得挺实用的,因此分享给大家做个参考,希望大家阅读完这篇文章后可以有所收获。

启动mongodb数据库:

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

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

F:\>mongodb/bin
F:\mongodb\bin>mongod --path=/data/db

启动成功输出以下信息:

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/db\journal

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/db\local.ns, filling with zeroes...

2016-10-20T17:11:02.553+0800 I STORAGE  [FileAllocator] allocating new datafile /data/db\local.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/db\local.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启动成功的标志是什么就分享到这里了,希望以上内容可以对大家有一定的帮助,可以学到更多知识。如果觉得文章不错,可以把它分享出去让更多的人看到。

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI