Perl:warning:Setting locale failed.
Perl:warning:Please Check that your locale settings:
LANGUAGE = (unset),
Lc_all = (unset),
LANG = "ZH_CN." Gb2312;zh_cn. Utf-8;en_us;en_us. UTF-8 "
are supported and installed on your system.
Perl:warning:Falling back to the standard locale ("C").
Perl:warning:Setting locale failed.
Perl:warning:Please Check that your locale settings:
LANGUAGE = (unset),
Lc_all = (unset),
LANG = "ZH_CN." Gb2312;zh_cn. Utf-8;en_us;en_us. UTF-8 "
are supported and installed on your system.
Perl:warning:Falling back to the standard locale ("C").
Similar prompts also appear when you use some other commands, such as mysqlhotcopy.
Searched for a good while and tried several times to find a simple way to solve the problem, as follows:
Vi/root/.bashrc
And at the bottom, add
Export Lc_all=c
or run directly
echo "Export Lc_all=c" >>/ROOT/.BASHRC
And then do it:
Source/root/.bashrc
All right.