To execute a command:
AddUser TESTUESR
The error prompts are as follows:
Perl:warning:Setting locale failed.
Perl:warning:Please Check that your locale settings:
LANGUAGE = "En_us:en",
lc_all = (unset),
lc_paper = "en _cn. UTF-8 ",
lc_address =" ZH_CN. UTF-8 ",
lc_monetary =" ZH_CN. UTF-8 ",
lc_numeric =" ZH_CN. UTF-8 ",
lc_telephone =" ZH_CN. UTF-8 ",
lc_identification =" ZH_CN. UTF-8 ",
lc_measurement =" ZH_CN. UTF-8 ",
lc_time =" ZH_CN. UTF-8 ",
lc_name =" ZH_CN. UTF-8 ",
LANG =" en_US. UTF-8 "
are supported and installed on your system.
Perl:warning:Falling back to the standard locale ("C").
Workaround:
Step 1)
Vim. BASHRC
Step 2)
Append at end of file:
Export Lc_all=c
or execute the command:
echo "Export Lc_all=c" >>/ROOT/.BASHRC
Step 3)
Final execution:
Source/root/.bashrc
OK, problem solved ~
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/OS/Linux/