当盯着mongoDB服务器时,它会遇到错误,并且mongoDB服务器无法启动。
2015-08-23T17:38:39.583+0530 I JOURNAL [initandlisten] journal dir=C:\data\db\journal
2015-08-23T17:38:39.587+0530 I JOURNAL [initandlisten] recover : no journal files present, no recovery needed
2015-08-23T17:38:39.588+0530 I JOURNAL [initandlisten]
2015-08-23T17:38:39.589+0530 E JOURNAL [initandlisten] Insufficient free space for journal files
2015-08-23T17:38:39.589+0530 I JOURNAL [initandlisten] Please make at least 3379MB available in C:\data\db\journal or use --smallfiles
2015-08-23T17:38:39.590+0530 I JOURNAL [initandlisten]
2015-08-23T17:38:39.590+0530 I STORAGE [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
2015-08-23T17:38:39.591+0530 I CONTROL [initandlisten] now exiting
2015-08-23T17:38:39.592+0530 I NETWORK [initandlisten] shutdown: going to close listening sockets...
2015-08-23T17:38:39.592+0530 I NETWORK [initandlisten] shutdown: going to flush diaglog...
2015-08-23T17:38:39.593+0530 I NETWORK [initandlisten] shutdown: going to close sockets...
2015-08-23T17:38:39.593+0530 I STORAGE [initandlisten] shutdown: waiting for fs preallocator...
2015-08-23T17:38:39.593+0530 I STORAGE [initandlisten] shutdown: final commit...
2015-08-23T17:38:39.594+0530 I STORAGE [initandlisten] shutdown: closing all files...
2015-08-23T17:38:39.594+0530 I STORAGE [initandlisten] closeAllFiles() finished
2015-08-23T17:38:39.595+0530 I CONTROL [initandlisten] dbexit: rc: 100
当C:\ data被删除时,它可以工作。我按照this教程。但它没有用。你能帮我解决这个问题吗?
答案 0 :(得分:1)
正如Lix所说,所有信息都在错误信息中。特别是:
日记文件的可用空间不足
请在C:\ data \ db \ journal中至少提供3379MB,或使用--smallfiles
如果您在C分区中至少释放3379MB,那么您应该可以启动MongoDB服务器。