-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 ~]#
相关文章
- 09-13报错处理——Failed to set locale, defaulting to C
- 09-13Failed to set locale, defaulting to C.UTF-8 报错
- 09-13出现Failed to set locale, defaulting to C.UTF-8
- 09-13阿里云ECS在CentOS 6.9中使用Nginx提示:nginx: [emerg] socket() [::]:80 failed (97: Address family not supported by protocol)的解决方法
- 09-13CentOS提示 Failed to set locale, defaulting to C的解决方法