Each time when I install a fresh CentOS 6.x server, I will get the following error when I ssh into the server.
Last login: Mon Jul 21 05:30:39 2014
-bash: warning: setlocale: LC_CTYPE: cannot change locale (UTF-8): No such file or directory
After searching and found the reason was because my server’s environment was no configured with the default locale. The solution I get from this webpage was to edit the /etc/environment file and enter the following two lines. You may set your own preferred language locale.
LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8
Another problem solved and remembered.
R.I.P MH17 Passengers and Crew - 17 July 2014