"Mongdb Error" Failed global initialization:badvalue Invalid or no user locale set.

Source: Internet
Author: User
Tags locale locale setting

Error:

Failed Global Initialization:badvalue Invalid or no user locale set. Please ensure LANG and/or lc_* environment variables is set correctly

Translation: Global initialization failure: Badvalue invalid or no user locale setting. Make sure that the Lang and/or lc_* set the environment variable correctly


Workaround

Method One:

Setting a variable manually is not used after a temporary reboot at the command line, which requires adding a row to the environment variable configuration file.

# Vim/etc/profile

Export Lc_all=c


Method Two:

To manually change the source environment

# Vim/etc/default/locale

Lang= "en_US. UTF-8 "

Language= "En_us:en"

Lc_all= "en_US. UTF-8 "





"Mongdb Error" Failed global initialization:badvalue Invalid or no user locale set.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.