首页 > linux > common > 12.localefacet_S_create_c_locale name not valid

12.localefacet_S_create_c_locale name not valid

linux系统执行mongo备份脚本的时候出现错误提示如下:

terminate called after throwing an instance of 'std::runtime_error'
  what():  locale::facet::_S_create_c_locale name not valid
Aborted (core dumped)
  • 问题描述 localefacetScreateclocale name not valid

  • 解决方案

在命令行输入

> export LC_ALL="C"

去除本地设置即可.

转载请保留原文链接.