MongoDB: locale::facet::_S_create_c_locale name not valid

前端 未结 1 751

I got this error message when trying to start mongod:

Tue Oct 29 21:33:23.589 [initandlisten] exception in initAndListen std::exception: locale:         


        
1条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-23 18:55

    The error message: locale::facet::_S_create_c_locale name not valid indicates that mongod is unable to work with your operating system's current locale.

    Adjusting your locale to C, which is supported by Mongo, will fix the problem:

    export LC_ALL=C
    mongod 
    

    This isn't a perfect solution, however: LC_ALL=C forces sorted by byte order rather than locale-sensitive character ordering,

    MongoDB locale support is generally lacking. There is an open JIRA ticket discussing locale support.

    0 讨论(0)
提交回复
热议问题