【mongdb报错】Failed global initialization: BadValue Invalid or no user locale set.
2015-10-27 16:14
381 查看
错误:
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly
翻译:全球初始化失败:BadValue无效或没有用户语言环境设置。请确保LANG and/or LC_* 正确设置环境变量
解决方法
方法一:
手动设置变量,在命令行里敲只是临时的重启后没有用了,这需要在环境变量配置文件里添加一行。
# vim /etc/profile
export LC_ALL=C
方法二:
手动更改源环境
# vim /etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_ALL="en_US.UTF-8"
Failed global initialization: BadValue Invalid or no user locale set. Please ensure LANG and/or LC_* environment variables are set correctly
翻译:全球初始化失败:BadValue无效或没有用户语言环境设置。请确保LANG and/or LC_* 正确设置环境变量
解决方法
方法一:
手动设置变量,在命令行里敲只是临时的重启后没有用了,这需要在环境变量配置文件里添加一行。
# vim /etc/profile
export LC_ALL=C
方法二:
手动更改源环境
# vim /etc/default/locale
LANG="en_US.UTF-8"
LANGUAGE="en_US:en"
LC_ALL="en_US.UTF-8"
相关文章推荐
- MQTT学习笔记-Mosquitto的安装与启动
- LeetCode 95: Unique Binary Search Trees II
- UIScrollView 和自动布局结合
- No resource found that matches the given name (at 'layout_toLeftOf' with value '@id/tx_search_friend
- LeetCode 96: Unique Binary Search Trees
- Java:字符串缓冲区StringBuffer和StringBuilder的使用
- npm WARN install Refusing to install vue-router as a dependency of itself
- 033.Continue 结束本次循环
- 037.Goto 代替 Continue 结束本次循环
- iOS中UITextField 使用全面解析
- UIButton
- How repair disk issue when "Fsck Failed please repair manually and reboot"
- UITableView
- Leetcode -- N-Queens II
- UITableView详解
- 滚动UIScrollView中子视图(按钮),实现 UIScrollView 滚动效果
- Volley内部UI层回调的实现代码
- 用Picasso的RequestHandler进行自定义加载的方法
- PowerDesigner15在生成SQL时报错Generation aborted due to errors detected during the verification of the mod
- UILabel使用技巧