,安装好mongdb,服务已经启动成功,之后在命令行使用mongo命令链接mongdb,但是出现如下问题,网上找了好久都没有答案,有人遇到这个问题吗,求解答?
![图片说明](https://img-ask.csdn.net/upload/201810/27/1540631195_140182.png)
日志文件里出现如下错误:
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] db version v4.0.1
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] git version: 54f1582fc6eb01de4d4c42f26fc133e623f065fb
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] allocator: tcmalloc
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] modules: none
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] build environment:
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] distmod: 2008plus-ssl
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] distarch: x86_64
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] target_arch: x86_64
2018-10-27T16:10:50.543+0800 I CONTROL [initandlisten] options: { config: "D:\worksoftinstall\MongoDB\bin\mongod.cfg", net: { bindIp: "127.0.0.1", port: 27017 }, service: true, storage: { dbPath: "D:\worksoftinstall\MongoDB\data", journal: { enabled: true } }, systemLog: { destination: "file", logAppend: true, path: "D:\worksoftinstall\MongoDB\log\mongod.log" } }
2018-10-27T16:10:50.589+0800 I STORAGE [initandlisten] Detected data files in D:\worksoftinstall\MongoDB\data created by the 'wiredTiger' storage engine, so setting the active storage engine to 'wiredTiger'.
2018-10-27T16:10:50.606+0800 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=3555M,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),statistics_log=(wait=0),verbose=(recovery_progress),
2018-10-27T16:10:51.198+0800 I STORAGE [initandlisten] WiredTiger message [1540627851:198530][1908:1991193456], txn-recover: Main recovery loop: starting at 2/6784
2018-10-27T16:10:51.295+0800 I STORAGE [initandlisten] WiredTiger message [1540627851:295535][1908:1991193456], txn-recover: Recovering log 2 through 3
2018-10-27T16:10:51.383+0800 I STORAGE [initandlisten] WiredTiger message [1540627851:383540][1908:1991193456], txn-recover: Recovering log 3 through 3
2018-10-27T16:10:51.435+0800 I STORAGE [initandlisten] WiredTiger message [1540627851:435543][1908:1991193456], txn-recover: Set global recovery timestamp: 0
2018-10-27T16:10:51.716+0800 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
2018-10-27T16:10:52.111+0800 I CONTROL [initandlisten]
2018-10-27T16:10:52.111+0800 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
2018-10-27T16:10:52.111+0800 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
2018-10-27T16:10:52.111+0800 I CONTROL [initandlisten]
2018-10-27T16:10:52.112+0800 I CONTROL [initandlisten] Hotfix KB2731284 or later update is not installed, will zero-out data files.
2018-10-27T16:10:52.112+0800 I CONTROL [initandlisten]
2018-10-27T16:10:52.997+0800 W FTDC [initandlisten] Failed to initialize Performance Counters for FTDC: WindowsPdhError: PdhExpandCounterPathW failed with '在计算机上找不到指定的对象。' for counter '\Memory\Available Bytes'
2018-10-27T16:10:52.997+0800 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory 'D:/worksoftinstall/MongoDB/data/diagnostic.data'
2018-10-27T16:10:53.042+0800 I NETWORK [initandlisten] waiting for connections on port 27017
2018-10-27T16:10:53.042+0800 I STORAGE [initandlisten] Service running