我在try 启动mongod
时收到以下错误消息:
Tue Oct 29 21:33:23.589 [initandlisten] exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating
我试着删除它并重新安装,但我得到了同样的错误.
我能做什么?
我在try 启动mongod
时收到以下错误消息:
Tue Oct 29 21:33:23.589 [initandlisten] exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating
我试着删除它并重新安装,但我得到了同样的错误.
我能做什么?
错误消息:
将您的区域设置调整为C
(Mongo支持),将解决此问题:
export LC_ALL=C
mongod
然而,这并不是一个完美的解决方案:LC_ALL=C
个力按字节顺序排序,而不是按区域设置敏感的字符顺序排序,
MongoDB区域设置支持通常是缺乏的.有open JIRA ticket个讨论区域设置支持.