MongoDB:区域设置:: facet :: _ S_create_c_locale名称无效 [英] MongoDB: locale::facet::_S_create_c_locale name not valid

查看:129
本文介绍了MongoDB:区域设置:: facet :: _ S_create_c_locale名称无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

尝试启动mongod时收到此错误消息:

Tue Oct 29 21:33:23.589 [initandlisten] exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating

我尝试将其删除并重新安装,但出现相同的错误.

我该怎么办?

解决方案

错误消息: locale::facet::_S_create_c_locale name not valid表示mongod无法使用您操作系统的当前语言环境. >

将语言环境调整为 C 由Mongo提供,将解决此问题:

export LC_ALL=C
mongod 

但这不是一个完美的解决方案:LC_ALL=C强制按字节顺序而不是对区域设置敏感的字符顺序进行排序

通常缺少MongoDB语言环境支持.有一个打开JIRA票证讨论了语言环境支持.

I got this error message when trying to start mongod:

Tue Oct 29 21:33:23.589 [initandlisten] exception in initAndListen std::exception: locale::facet::_S_create_c_locale name not valid, terminating

I have tried remove it and re-installing, but I got the same error.

What can I do?

解决方案

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.

这篇关于MongoDB:区域设置:: facet :: _ S_create_c_locale名称无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆