2

我几个月以来一直在使用 mongodb,它一直运行良好,直到昨天,但今天我遇到了麻烦。data\db我在指定路径的驱动器中有 23.7GB 可用空间,但它说Please make at least 3379MB available in /data/db/journal。这是一个错误还是什么?

C:\Users\sadaf2605\Downloads\Compressed\Console2>mongod
mongod --help for help and startup options
Sun Feb 24 03:20:05 [initandlisten] MongoDB starting : pid=7020 port=27017 dbpath=\data\db\ 64-bit host=Sadaf
Sun Feb 24 03:20:05 [initandlisten] db version v2.2.2, pdfile version 4.5
Sun Feb 24 03:20:05 [initandlisten] git version: d1b43b61a5308c4ad0679d34b262c5af9d664267
Sun Feb 24 03:20:05 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, pla
tform=2, service_pack='Service Pack 1') BOOST_LIB_VERSION=1_49
Sun Feb 24 03:20:05 [initandlisten] options: {}
Sun Feb 24 03:20:05 [initandlisten] journal dir=/data/db/journal
Sun Feb 24 03:20:05 [initandlisten] recover : no journal files present, no recovery needed
Sun Feb 24 03:20:05 [initandlisten]
Sun Feb 24 03:20:05 [initandlisten] ERROR: Insufficient free space for journal files
Sun Feb 24 03:20:05 [initandlisten] Please make at least 3379MB available in /data/db/journal or use --smallfiles
Sun Feb 24 03:20:05 [initandlisten]
Sun Feb 24 03:20:05 [initandlisten] exception in initAndListen: 15926 Insufficient free space for journals, terminating
Sun Feb 24 03:20:05 dbexit:
Sun Feb 24 03:20:05 [initandlisten] shutdown: going to close listening sockets...
Sun Feb 24 03:20:05 [initandlisten] shutdown: going to flush diaglog...
Sun Feb 24 03:20:05 [initandlisten] shutdown: going to close sockets...
Sun Feb 24 03:20:05 [initandlisten] shutdown: waiting for fs preallocator...
Sun Feb 24 03:20:05 [initandlisten] shutdown: lock for final commit...
Sun Feb 24 03:20:05 [initandlisten] shutdown: final commit...
Sun Feb 24 03:20:05 [initandlisten] shutdown: closing all files...
Sun Feb 24 03:20:05 [initandlisten] closeAllFiles() finished
Sun Feb 24 03:20:05 [initandlisten] journalCleanup...
Sun Feb 24 03:20:05 [initandlisten] removeJournalFiles
Sun Feb 24 03:20:05 [initandlisten] shutdown: removing fs lock...
Sun Feb 24 03:20:05 dbexit: really exiting now

我也尝试过使用--smallfiles,但它不起作用!

C:\Users\sadaf2605\Downloads\Compressed\Console2>mongod --smallfiles
Sun Feb 24 03:23:38 [initandlisten] MongoDB starting : pid=6844 port=27017 dbpath=\data\db\ 64-bit host=Sadaf
Sun Feb 24 03:23:38 [initandlisten] db version v2.2.2, pdfile version 4.5
Sun Feb 24 03:23:38 [initandlisten] git version: d1b43b61a5308c4ad0679d34b262c5af9d664267
Sun Feb 24 03:23:38 [initandlisten] build info: windows sys.getwindowsversion(major=6, minor=1, build=7601, platform=2, service_pack=
'Service Pack 1') BOOST_LIB_VERSION=1_49
Sun Feb 24 03:23:38 [initandlisten] options: { smallfiles: true }
Sun Feb 24 03:23:38 [initandlisten] journal dir=/data/db/journal
Sun Feb 24 03:23:38 [initandlisten] recover : no journal files present, no recovery needed
Sun Feb 24 03:23:38 [initandlisten] ERROR: listen(): bind() failed errno:10048 Only one usage of each socket address (protocol/networ
k address/port) is normally permitted. for socket: 0.0.0.0:27017
Sun Feb 24 03:23:38 [websvr] admin web console waiting for connections on port 28017
Sun Feb 24 03:23:38 [initandlisten] now exiting
Sun Feb 24 03:23:38 dbexit:
Sun Feb 24 03:23:38 [initandlisten] shutdown: going to close listening sockets...
Sun Feb 24 03:23:38 [initandlisten] closing listening socket: 464
Sun Feb 24 03:23:38 [initandlisten] shutdown: going to flush diaglog...
Sun Feb 24 03:23:38 [initandlisten] shutdown: going to close sockets...
Sun Feb 24 03:23:38 [initandlisten] shutdown: waiting for fs preallocator...
Sun Feb 24 03:23:38 [initandlisten] shutdown: lock for final commit...
Sun Feb 24 03:23:38 [initandlisten] shutdown: final commit...
Sun Feb 24 03:23:38 [initandlisten] shutdown: closing all files...
Sun Feb 24 03:23:38 [initandlisten] closeAllFiles() finished
Sun Feb 24 03:23:38 [initandlisten] journalCleanup...
Sun Feb 24 03:23:38 [initandlisten] removeJournalFiles
Sun Feb 24 03:23:38 [initandlisten] shutdown: removing fs lock...
Sun Feb 24 03:23:38 dbexit: really exiting now
4

1 回答 1

0

错误:日志文件的可用空间不足

根据上述错误,释放您的空间。

另请参阅:日记文件存在于日记目录中,但在未启用日记的情况下开始

错误:listen():bind() failed errno:10048 每个套接字地址(协议/网络地址/端口)通常只允许使用一次。对于套接字:0.0.0.0:27017

这表明端口 27017 上已经有一些进程绑定,应该被杀死。

于 2018-02-24T23:09:13.873 回答