CentOS提示 Failed to set locale, defaulting to C的解决方法

-bash: local: can only be used in a function
[root@VM-24-5-centos ~]# locale
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
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=
[root@VM-24-5-centos ~]# echo "export LC_ALL=en_US.UTF-8" >> /etc/profile
[root@VM-24-5-centos ~]# source /etc/profile
[root@VM-24-5-centos ~]#

上一篇:elasticsearch lucence查询语法(较全)


下一篇:ref,computed 用法