我正在尝试在CentOS 6.2上安装MongoDB,但是当我尝试启动时它会一直崩溃.我收到以下错误:
mongod --dbpath /mnt/datadrive/data --logpath /mnt/datadrive/data/mongod.log Tue May 7 14:47:46.913 terminate() called, printing stack (if implemented for platform): 0xdcf361 0x6ce59e 0x3b14ebcbe6 0x3b14ebcc13 0x3b14ebcd0e 0x3b14e61ce7 0x3b14ebaa04 0x3b14e663bc 0x3b14e67226 0xdecc8f 0xded5db 0xdea280 0x9e846f 0x6dc742 0x6de4d9 0x3b11a1ecdd 0x6ce389 mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xdcf361] mongod(_ZN5mongo11myterminateEv+0x3e) [0x6ce59e] /usr/lib64/libstdc++.so.6() [0x3b14ebcbe6] /usr/lib64/libstdc++.so.6() [0x3b14ebcc13] /usr/lib64/libstdc++.so.6() [0x3b14ebcd0e] /usr/lib64/libstdc++.so.6(_ZSt21__throw_runtime_errorPKc+0x67) [0x3b14e61ce7] /usr/lib64/libstdc++.so.6() [0x3b14ebaa04] /usr/lib64/libstdc++.so.6(_ZNSt6locale5_ImplC2EPKcm+0x4c) [0x3b14e663bc] /usr/lib64/libstdc++.so.6(_ZNSt6localeC2EPKc+0x5f6) [0x3b14e67226] mongod(_ZN5boost11filesystem34path21wchar_t_codecvt_facetEv+0x4f) [0xdecc8f] mongod(_ZNK5boost11filesystem34path14root_directoryEv+0xbb) [0xded5db] mongod(_ZN5boost11filesystem38absoluteERKNS0_4pathES3_+0x40) [0xdea280] mongod(_ZN5mongo27initializeServerGlobalStateEb+0x15f) [0x9e846f] mongod() [0x6dc742] mongod(main+0x9) [0x6de4d9] /lib64/libc.so.6(__libc_start_main+0xfd) [0x3b11a1ecdd] mongod(__gxx_personality_v0+0x499) [0x6ce389] Tue May 7 14:47:46.918 Got signal: 6 (Aborted). Tue May 7 14:47:46.922 Backtrace: 0xdcf361 0x6cf729 0x3b11a32920 0x3b11a328a5 0x3b11a34085 0x6ce5a3 0x3b14ebcbe6 0x3b14ebcc13 0x3b14ebcd0e 0x3b14e61ce7 0x3b14ebaa04 0x3b14e663bc 0x3b14e67226 0xdecc8f 0xded5db 0xdea280 0x9e846f 0x6dc742 0x6de4d9 0x3b11a1ecdd mongod(_ZN5mongo15printStackTraceERSo+0x21) [0xdcf361] mongod(_ZN5mongo10abruptQuitEi+0x399) [0x6cf729] /lib64/libc.so.6() [0x3b11a32920] /lib64/libc.so.6(gsignal+0x35) [0x3b11a328a5] /lib64/libc.so.6(abort+0x175) [0x3b11a34085] mongod(_ZN5mongo11myterminateEv+0x43) [0x6ce5a3] /usr/lib64/libstdc++.so.6() [0x3b14ebcbe6] /usr/lib64/libstdc++.so.6() [0x3b14ebcc13] /usr/lib64/libstdc++.so.6() [0x3b14ebcd0e] /usr/lib64/libstdc++.so.6(_ZSt21__throw_runtime_errorPKc+0x67) [0x3b14e61ce7] /usr/lib64/libstdc++.so.6() [0x3b14ebaa04] /usr/lib64/libstdc++.so.6(_ZNSt6locale5_ImplC2EPKcm+0x4c) [0x3b14e663bc] /usr/lib64/libstdc++.so.6(_ZNSt6localeC2EPKc+0x5f6) [0x3b14e67226] mongod(_ZN5boost11filesystem34path21wchar_t_codecvt_facetEv+0x4f) [0xdecc8f] mongod(_ZNK5boost11filesystem34path14root_directoryEv+0xbb) [0xded5db] mongod(_ZN5boost11filesystem38absoluteERKNS0_4pathES3_+0x40) [0xdea280] mongod(_ZN5mongo27initializeServerGlobalStateEb+0x15f) [0x9e846f] mongod() [0x6dc742] mongod(main+0x9) [0x6de4d9] /lib64/libc.so.6(__libc_start_main+0xfd) [0x3b11a1ecdd]
我一直在这里关注一个教程.有关如何解决此问题的任何建议?
只需共享另一种更简单(IMO)的方式来设置我在此处找到的语言环境,同时搜索此问题的解决方案.
基本上,将您的语言环境设置为合理的值,例如
export LC_CTYPE="en_US.UTF-8"
错误报告在这里.