Don't want to see:
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
Solution:
execute
[root@CentosAshley ~]# localeResult for english language
[root@CentosAshley ~]# locale LANG=en_US.UTF-8 LC_CTYPE=ja_JP.UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=Go to the /etc/sysconfig/i18n and add
LC_ALL=en_US.UTF-8 SUPPORTED=en_US.UTF-8:en_US:enthen on the .bashrc
export LC_TYPE=en_US.UTF-8 export LC_All=en_US.UTF-8Don't forget to source .bashrc && reboot
then
[root@CentosAshley ~]# locale LANG=en_US.UTF-8 LC_CTYPE=UTF-8 LC_NUMERIC="en_US.UTF-8" LC_TIME="en_US.UTF-8" LC_COLLATE="en_US.UTF-8" LC_MONETARY="en_US.UTF-8" LC_MESSAGES="en_US.UTF-8" LC_PAPER="en_US.UTF-8" LC_NAME="en_US.UTF-8" LC_ADDRESS="en_US.UTF-8" LC_TELEPHONE="en_US.UTF-8" LC_MEASUREMENT="en_US.UTF-8" LC_IDENTIFICATION="en_US.UTF-8" LC_ALL=