解决-bash: warning: setlocale: LC_CTYPE: cannot change locale (en_US.UTF-8): No such file or directory

一、vi /etc/sysconfig/i18n,添加下面两行语句

LC_ALL=C
export LC_ALL

二、再执行下面的语句,使之生效

source /etc/sysconfig/i18n

 

你可能感兴趣的:(Linux)